Documentation
¶
Index ¶
- type Agent
- func (a *Agent) ApplyRead(roLevel rkvApi.ConsistencyLevel, fn string, args ...[]byte) (interface{}, error)
- func (a *Agent) ApplyWrite(fn string, args ...[]byte) (interface{}, error)
- func (a *Agent) Delete(tab, key []byte) error
- func (a *Agent) Get(lvl api.ConsistencyLevel, tab, key []byte) ([]byte, error)
- func (a *Agent) GetApplyFunc(name string) (dbApi.ApplyFunc, bool, error)
- func (a *Agent) IsLeader() bool
- func (a *Agent) Leader() (string, string)
- func (a *Agent) Logger(subSystem string) *log.Logger
- func (a *Agent) Put(tab, key, value []byte) error
- func (a *Agent) RegisterApplyRead(name string, fn dbApi.ApplyFunc) error
- func (a *Agent) RegisterApplyWrite(name string, fn dbApi.ApplyFunc) error
- func (a *Agent) Shutdown() error
- func (a *Agent) UnRegisterApply(name string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { *Config // contains filtered or unexported fields }
Agent ...
func (*Agent) ApplyRead ¶ added in v0.4.7
func (a *Agent) ApplyRead( roLevel rkvApi.ConsistencyLevel, fn string, args ...[]byte) (interface{}, error)
ApplyRead ...
func (*Agent) ApplyWrite ¶ added in v0.4.7
ApplyWrite ...
func (*Agent) GetApplyFunc ¶ added in v0.1.3
GetApplyFunc ...
func (*Agent) RegisterApplyRead ¶ added in v0.4.3
RegisterApplyRead ...
func (*Agent) RegisterApplyWrite ¶ added in v0.4.3
RegisterApplyWrite ...
func (*Agent) UnRegisterApply ¶ added in v0.1.3
UnRegisterApply ...
type Config ¶
type Config struct { DataDir string Raft raft.Config BindAddr string // Serf, Raft, RPC address. Serf with port RPCPort int // rpc API server RaftPort int BindHTTP string // bind address for HTTP server Backend dbApi.Backend NodeName string // Raft server ID // Bootstrap should be set to true when starting the first node // of the cluster StartJoinAddrs []string Bootstrap bool RoutingPolicy rkvApi.RoutingPolicy // Log oprtions: passed configured logger Logger log.Logger // Or configure options // LogLevel: error | warn | info | debug | trace LogLevel string // LogOutput default - stderr LogOutput io.Writer LogIncludeLocation bool LogTimeFormat string // OnLeaderChangeFn func(isLeader bool) // Registry rkvApi.ApplyRegistrator }
Config ...
Click to show internal directories.
Click to hide internal directories.