consul

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStateBackend

func NewStateBackend(log zerolog.Logger, path string, client *api.Client) scale.Backend

Types

type StateBackend

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

func (StateBackend) GetLatestScalingEvent added in v0.3.0

func (s StateBackend) GetLatestScalingEvent(job, group string) (*state.ScalingEvent, error)

func (StateBackend) GetLatestScalingEvents added in v0.3.0

func (s StateBackend) GetLatestScalingEvents() (map[string]*state.ScalingEvent, error)

func (StateBackend) GetScalingEvent

func (s StateBackend) GetScalingEvent(id uuid.UUID) (map[string]*state.ScalingEvent, error)

func (StateBackend) GetScalingEvents

func (s StateBackend) GetScalingEvents() (map[uuid.UUID]map[string]*state.ScalingEvent, error)

func (StateBackend) PutScalingEvent

func (s StateBackend) PutScalingEvent(job string, event *state.ScalingEventMessage) error

func (StateBackend) RunGarbageCollection

func (s StateBackend) RunGarbageCollection()

Jump to

Keyboard shortcuts

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