servermode

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeEvent

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

func ChangeEventError

func ChangeEventError(err error) ChangeEvent

func NewChangeEvent

func NewChangeEvent(mode Mode, ack func(context.Context) error) ChangeEvent

func (ChangeEvent) Ack

func (m ChangeEvent) Ack(ctx context.Context) error

func (ChangeEvent) Err

func (m ChangeEvent) Err() error

func (ChangeEvent) Mode

func (m ChangeEvent) Mode() Mode

type Mode

type Mode string
const (
	NormalMode   Mode = "NORMAL"
	DegradedMode Mode = "DEGRADED"
)

func (Mode) Valid

func (mode Mode) Valid() bool

Jump to

Keyboard shortcuts

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