Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Init(ctx context.Context) error PutModule(ctx context.Context, name string, src string) error // PutModules upserts a number of modules under a given prefix. PutModules(ctx context.Context, namePrefix string, srcs []string) error DeleteModule(ctx context.Context, name string) (bool, error) // DeleteModules deletes all modules under a given prefix and returns the // count of modules deleted. Deletion of non-existing prefix will // result in 0, nil being returned. DeleteModules(ctx context.Context, namePrefix string) (int, error) PutData(ctx context.Context, path string, data interface{}) error DeleteData(ctx context.Context, path string) (bool, error) Query(ctx context.Context, path string, input interface{}, opts ...QueryOpt) (*types.Response, error) Dump(ctx context.Context) (string, error) }
Click to show internal directories.
Click to hide internal directories.