c15b1b6f10
* annotation legacy store with api server, read only * annotations are not addressable by ID for read operations * add ownership for an app * typo, of course * fix go workspace * update workspace * copy annotation app in dockerfile * experimenting with store interface * finalising interfaces * add tags as custom handler * implement tags handler * add missing config file * mute linter * update generated files * update workspace
17 lines
586 B
Go
17 lines
586 B
Go
package app
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana-app-sdk/app"
|
|
)
|
|
|
|
// AnnotationConfig is the app-specific config for the annotation app. The
|
|
// registry can pass a TagHandler implementation here to wire the /tags
|
|
// resource route into the app without importing registry types.
|
|
type AnnotationConfig struct {
|
|
// TagHandler is the handler function for the GET /tags custom route.
|
|
// The function signature matches app.CustomRouteHandler from the app-sdk.
|
|
TagHandler func(ctx context.Context, writer app.CustomRouteResponseWriter, request *app.CustomRouteRequest) error
|
|
}
|