Documentation ¶
Index ¶
- type Config
- type EtcdServer
- func (server *EtcdServer) CurrentCluster() Config
- func (server *EtcdServer) Leader() string
- func (server *EtcdServer) Members() []Node
- func (server *EtcdServer) Start()
- func (server *EtcdServer) Stop()
- func (server *EtcdServer) StorageDir() string
- func (server *EtcdServer) WaitToStart()
- func (server *EtcdServer) WaitToStop()
- type Node
- type RelayServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func ConvertJSONToConfig ¶
type EtcdServer ¶
type EtcdServer struct {
// contains filtered or unexported fields
}
func CreateEtcdServer ¶
func CreateEtcdServer(thisNode Node, config Config, dataPath string) *EtcdServer
func (*EtcdServer) CurrentCluster ¶
func (server *EtcdServer) CurrentCluster() Config
func (*EtcdServer) Leader ¶
func (server *EtcdServer) Leader() string
func (*EtcdServer) Members ¶
func (server *EtcdServer) Members() []Node
func (*EtcdServer) Start ¶
func (server *EtcdServer) Start()
func (*EtcdServer) Stop ¶
func (server *EtcdServer) Stop()
func (*EtcdServer) StorageDir ¶
func (server *EtcdServer) StorageDir() string
func (*EtcdServer) WaitToStart ¶
func (server *EtcdServer) WaitToStart()
func (*EtcdServer) WaitToStop ¶
func (server *EtcdServer) WaitToStop()
type Node ¶
type RelayServer ¶
type RelayServer struct {
// contains filtered or unexported fields
}
func CreateRelayServer ¶
func CreateRelayServer(thisNode Node, clusterConfig Config) *RelayServer
func (*RelayServer) Broadcast ¶
func (server *RelayServer) Broadcast(msg []byte) error
Send a message to all ReplayServers in the Cluster
func (*RelayServer) Receive ¶
func (server *RelayServer) Receive() chan []byte
func (*RelayServer) Shutdown ¶
func (server *RelayServer) Shutdown()
Click to show internal directories.
Click to hide internal directories.