Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DKVService ¶
A DKVService represents a service for serving key value data.
func NewService ¶
func NewService(store storage.KVStore, ca storage.ChangeApplier, replCli *ctl.DKVClient, replPollInterval time.Duration, lgr *zap.Logger, statsCli stats.Client) (DKVService, error)
NewService creates a slave DKVService that periodically polls for changes from master node and replicates them onto its local storage. As a result, it forbids changes to this local storage through any of the other key value mutators.
Click to show internal directories.
Click to hide internal directories.