seesaw

package
v0.0.0-...-1cdf2d7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HaState_name = map[int32]string{
		0: "UNKNOWN",
		1: "BACKUP",
		2: "DISABLED",
		3: "ERROR",
		4: "LEADER",
		5: "SHUTDOWN",
	}
	HaState_value = map[string]int32{
		"UNKNOWN":  0,
		"BACKUP":   1,
		"DISABLED": 2,
		"ERROR":    3,
		"LEADER":   4,
		"SHUTDOWN": 5,
	}
)

Enum value maps for HaState.

View Source
var File_seesaw_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HaState

type HaState int32

High-Availability states for a Seesaw Node.

const (
	// State of the node could not be determined.
	HaState_UNKNOWN HaState = 0
	// Node is in a ready but non-serving state.
	HaState_BACKUP HaState = 1
	// Node is disabled, will not serve traffic.
	HaState_DISABLED HaState = 2
	// Node is in a failure state.
	HaState_ERROR HaState = 3
	// Node is in an active and serving state.
	HaState_LEADER HaState = 4
	// Node is in shutdown state and will stop serving requests.
	HaState_SHUTDOWN HaState = 5
)

func (HaState) Descriptor

func (HaState) Descriptor() protoreflect.EnumDescriptor

func (HaState) Enum

func (x HaState) Enum() *HaState

func (HaState) EnumDescriptor deprecated

func (HaState) EnumDescriptor() ([]byte, []int)

Deprecated: Use HaState.Descriptor instead.

func (HaState) Number

func (x HaState) Number() protoreflect.EnumNumber

func (HaState) String

func (x HaState) String() string

func (HaState) Type

func (HaState) Type() protoreflect.EnumType

func (*HaState) UnmarshalJSON deprecated

func (x *HaState) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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