manager

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const SWAN_ATOMIC_STORE_NODE_PATH = "%s/atomic-store"
View Source
const SWAN_LEADER_ELECTION_NODE_PATH = "%s/leader-election"
View Source
const ZK_FLAG_NONE = 0

Variables

View Source
var (
	ErrNormalExit = errors.New("normal exit 0")
)
View Source
var (
	ZK_DEFAULT_ACL = zk.WorldACL(zk.PermAll)
)

Functions

This section is empty.

Types

type Leadership added in v0.1.11

type Leadership uint8
const (
	LeadershipUnknown  Leadership = 1
	LeadershipLeader   Leadership = 2
	LeadershipFollower Leadership = 3
)

func (Leadership) String added in v0.1.11

func (l Leadership) String() string

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(managerConf config.ManagerConfig) (*Manager, error)

func (*Manager) InitAndStart added in v0.1.7

func (manager *Manager) InitAndStart(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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