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 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 (*Plugin) InitialSync ¶
func (p *Plugin) InitialSync()
InitialSync will start initial synchronization with downstream.
Click to show internal directories.
Click to hide internal directories.