Documentation ¶
Index ¶
Constants ¶
View Source
const ( RSCommand = "rs" URSCommand = "us" )
Variables ¶
This section is empty.
Functions ¶
func DecodeMessage ¶
func EncodeMessage ¶
Types ¶
type Cluster ¶
type Cluster interface { RegisterService(ss *api.AppService) error UnregisterService(addr string) error }
func NewMockCluster ¶
func NewMockCluster() Cluster
type MockCluster ¶
type MockCluster struct { }
func (MockCluster) RegisterService ¶
func (c MockCluster) RegisterService(ss *api.AppService) error
func (MockCluster) UnregisterService ¶
func (c MockCluster) UnregisterService(addr string) error
type SerfCluster ¶
type SerfCluster struct {
// contains filtered or unexported fields
}
func (*SerfCluster) GetSerf ¶
func (c *SerfCluster) GetSerf() *serf.Serf
func (*SerfCluster) RegisterService ¶
func (c *SerfCluster) RegisterService(ss *api.AppService) error
func (*SerfCluster) UnregisterService ¶
func (c *SerfCluster) UnregisterService(addr string) error
Click to show internal directories.
Click to hide internal directories.