Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is default instance of Plugin
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
infra.PluginDeps
GRPC grpc.Server
KVScheduler kvs.KVScheduler
Watcher datasync.KeyValProtoWatcher
}
Deps represents dependencies for the plugin.
type Dispatcher ¶
type KeyVal ¶
KeyVal associates value with its key.
type Option ¶
type Option func(*Plugin)
Option is a function that acts on a Plugin to inject Dependencies or configuration
type Plugin ¶
type Plugin struct {
Deps
// contains filtered or unexported fields
}
Plugin implements sync service for GRPC.
func NewPlugin ¶
NewPlugin creates a new Plugin with the provides Options
func (*Plugin) AfterInit ¶
AfterInit subscribes to known NB prefixes.
func (*Plugin) Init ¶
Init registers the service to GRPC server.
Source Files
¶
- dispatcher.go
- genericmanager.go
- options.go
- orchestrator.go
- store.go
Click to show internal directories.
Click to hide internal directories.