Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(handlers map[string]ResoureceHandlerInitializer)
Types ¶
type ResourceHandler ¶
type ResourceHandler interface { GetResource(context.Context, value.Identifier) (value.Resource, error) CreateResource(context.Context, value.Identifier, any) (value.Resource, error) UpdateResource(context.Context, value.Identifier, any, []value.UpdateMaskField) (value.Resource, error) DeleteResource(context.Context, value.Identifier) error Close() error }
type ResoureceHandlerInitializer ¶
type ResoureceHandlerInitializer func(context.Context) (ResourceHandler, error)
Click to show internal directories.
Click to hide internal directories.