module

package
v0.0.0-...-ea508c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Client *redis.Client
}

State struct

func (*State) AllDown

func (s *State) AllDown()

AllDown mark all hosts as down

func (*State) AllUp

func (s *State) AllUp()

AllUp mark all hosts as up

func (*State) Change

func (s *State) Change()

Change changes the current state

func (*State) Get

func (s *State) Get() int

Get gets the current state

func (*State) HostDown

func (s *State) HostDown()

HostDown mark current host as down

func (*State) HostUp

func (s *State) HostUp()

HostUp mark current host as up

func (*State) Init

func (s *State) Init() error

Init init state driver

func (*State) IsDown

func (s *State) IsDown() bool

IsDown checks if the current host is down

func (*State) IsStateful

func (s *State) IsStateful() bool

IsStateful check if app runs on stateful mode

func (*State) IsStateless

func (s *State) IsStateless() bool

IsStateless check if app runs on stateless mode

func (*State) Reset

func (s *State) Reset()

Reset resets the current state

Jump to

Keyboard shortcuts

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