Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentServer ¶
type AgentServer struct { Port int // contains filtered or unexported fields }
func NewAgentServer ¶
func NewAgentServer(dir string, port int, leader string) *AgentServer
func (*AgentServer) Init ¶
func (r *AgentServer) Init() (err error)
Start starts to listen on a port, returning the listening port r.Port can be pre-set or leave it as zero The actual port set to r.Port
func (*AgentServer) Run ¶
func (as *AgentServer) Run()
func (*AgentServer) Stop ¶
func (r *AgentServer) Stop()
type LiveDataStore ¶
type LiveDataStore struct {
// contains filtered or unexported fields
}
func NewLiveDataStore ¶
func NewLiveDataStore(s store.DataStore) *LiveDataStore
func (*LiveDataStore) Destroy ¶
func (ds *LiveDataStore) Destroy()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.