plugin

package
v0.0.1-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 1

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL