fusis

package
v0.0.0-...-398fed0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(config *config.AgentConfig) (*Agent, error)

func (*Agent) Join

func (a *Agent) Join(existing []string, ignoreOld bool) (n int, err error)

func (*Agent) Shutdown

func (a *Agent) Shutdown()

func (*Agent) Start

func (a *Agent) Start() error

type Balancer

type Balancer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Balancer represents the Load Balancer

func NewBalancer

func NewBalancer(config *config.BalancerConfig) (*Balancer, error)

NewBalancer initializes a new balancer TODO: Graceful shutdown on initialization errors

func (*Balancer) AddDestination

func (b *Balancer) AddDestination(svc *types.Service, dst *types.Destination) error

func (*Balancer) AddService

func (b *Balancer) AddService(svc *types.Service) error

AddService ...

func (*Balancer) ApplyToRaft

func (b *Balancer) ApplyToRaft(cmd *engine.Command) error

func (*Balancer) DeleteDestination

func (b *Balancer) DeleteDestination(dst *types.Destination) error

func (*Balancer) DeleteService

func (b *Balancer) DeleteService(name string) error

func (*Balancer) GetDestination

func (b *Balancer) GetDestination(name string) (*types.Destination, error)

func (*Balancer) GetLeader

func (b *Balancer) GetLeader() string

func (*Balancer) GetService

func (b *Balancer) GetService(name string) (*types.Service, error)

GetService get a service

func (*Balancer) GetServices

func (b *Balancer) GetServices() []types.Service

GetServices get all services

func (*Balancer) IsLeader

func (b *Balancer) IsLeader() bool

func (*Balancer) JoinPool

func (b *Balancer) JoinPool() error

JoinPool joins the Fusis Serf cluster

func (*Balancer) Leave

func (b *Balancer) Leave()

func (*Balancer) Shutdown

func (b *Balancer) Shutdown()

type ErrCrashError

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

func (ErrCrashError) Error

func (e ErrCrashError) Error() string

Jump to

Keyboard shortcuts

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