threshold

package
v5.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Ops holds all possible values.

Functions

This section is empty.

Types

type Op

type Op byte

Op holds an operation to apply when a pool threshold is hit.

const (
	Unknown Op = iota
	HalveMove
	HalveDodge
	HalveST
)

Possible values.

const LastOp Op = HalveST

LastOp is the last valid value.

func ExtractOp

func ExtractOp(str string) Op

ExtractOp extracts the value from a string.

func (Op) AltString

func (enum Op) AltString() string

AltString returns the alternate string.

func (Op) EnsureValid

func (enum Op) EnsureValid() Op

EnsureValid ensures this is of a known value.

func (Op) Key

func (enum Op) Key() string

Key returns the key used in serialization.

func (Op) MarshalText

func (enum Op) MarshalText() (text []byte, err error)

MarshalText implements the encoding.TextMarshaler interface.

func (Op) String

func (enum Op) String() string

String implements fmt.Stringer.

func (*Op) UnmarshalText

func (enum *Op) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

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