state

package
v0.0.0-...-22c38b1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: MIT Imports: 2 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checks

type Checks []types.CheckSpec

type Destinations

type Destinations map[string]types.Destination

type FusisState

type FusisState struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

State...

func (*FusisState) AddCheck

func (s *FusisState) AddCheck(check types.CheckSpec)

func (*FusisState) AddDestination

func (s *FusisState) AddDestination(dst types.Destination)

func (*FusisState) AddService

func (s *FusisState) AddService(svc types.Service)

func (*FusisState) Copy

func (s *FusisState) Copy() State

func (*FusisState) DeleteDestination

func (s *FusisState) DeleteDestination(dst types.Destination)

func (*FusisState) GetChecks

func (s *FusisState) GetChecks() []types.CheckSpec

func (*FusisState) GetDestinations

func (s *FusisState) GetDestinations(svc *types.Service) []types.Destination

func (*FusisState) GetServices

func (s *FusisState) GetServices() []types.Service

func (*FusisState) SetChecks

func (s *FusisState) SetChecks(checks Checks)

type Services

type Services []types.Service

type State

type State interface {
	GetServices() []types.Service
	AddService(svc types.Service)

	// SetDestinations(dsts Destinations)
	GetDestinations(svc *types.Service) []types.Destination
	AddDestination(dst types.Destination)
	DeleteDestination(dst types.Destination)

	AddCheck(c types.CheckSpec)
	GetChecks() []types.CheckSpec
	SetChecks(checks Checks)
	Copy() State
}

func New

func New() (State, error)

New creates a new Engine

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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