Documentation ¶
Index ¶
- Variables
- func EnabledGrpcMetrics()
- func UnmarshalLazyValue(key string, lazy datasync.LazyValue) (proto.Message, error)
- type Deps
- type Dispatcher
- type KVPairs
- type KVStore
- type KeyVal
- type Option
- type Plugin
- func (p *Plugin) AfterInit() (err error)
- func (p *Plugin) Close() (err error)
- func (p Plugin) GetStatus(key string) (*Status, error)
- func (p *Plugin) Init() (err error)
- func (p *Plugin) InitialSync() error
- func (p Plugin) ListData() KVPairs
- func (p Plugin) ListState() (KVPairs, error)
- func (p Plugin) PushData(ctx context.Context, kvPairs []KeyVal) (results []Result, err error)
- type Result
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is default instance of Plugin
View Source
var ( // EnableStatusPublishing enables status publishing. EnableStatusPublishing = os.Getenv("ENABLE_STATUS_PUBLISHING") != "" )
Functions ¶
func EnabledGrpcMetrics ¶ added in v3.1.0
func EnabledGrpcMetrics()
Types ¶
type Deps ¶
type Deps struct { infra.PluginDeps GRPC grpc.Server KVScheduler kvs.KVScheduler Watcher datasync.KeyValProtoWatcher StatusPublisher datasync.KeyProtoValWriter }
Deps represents dependencies for the plugin.
type Dispatcher ¶
type KVStore ¶
type KVStore interface { ListAll() KVPairs List(dataSrc string) KVPairs Update(dataSrc, key string, val proto.Message) Delete(dataSrc, key string) Reset(dataSrc string) }
KVStore describes an interface for key-value store used by dispatcher.
type Option ¶
type Option func(*Plugin)
Option is a function that acts on a Plugin to inject Dependencies or configuration
func UseReflection ¶ added in v3.1.0
type Plugin ¶
type Plugin struct { Deps // contains filtered or unexported fields }
Plugin implements sync service for GRPC.
func (*Plugin) InitialSync ¶
InitialSync will start initial synchronization.
type Status ¶
type Status = kvscheduler.ValueStatus
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package contextdecorator handles insertions and extractions of orchestrator related data from context.
|
Package contextdecorator handles insertions and extractions of orchestrator related data from context. |
Click to show internal directories.
Click to hide internal directories.