cluster

package
v0.0.0-...-16f4573 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2015 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSCommand  = "rs"
	URSCommand = "us"
)

Variables

This section is empty.

Functions

func DecodeMessage

func DecodeMessage(buf []byte, out interface{}) error

func EncodeMessage

func EncodeMessage(msg interface{}) ([]byte, error)

Types

type Cluster

type Cluster interface {
	RegisterService(ss *api.AppService) error
	UnregisterService(addr string) error
}

func NewMockCluster

func NewMockCluster() Cluster

func NewSerfCluster

func NewSerfCluster(serf *serf.Serf, logger *log.Logger) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL