enum

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Check         = 0
	For           = 2
	SureFor       = 3
	TotallyFor    = 5
	AbsolutelyFor = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	Spawn Action = "spawn"
	Close Action = "close"
	Await Action = "await"
)

func (Action) String

func (a Action) String() string

type CloseVoter

type CloseVoter string
const (
	CloseByRPS         CloseVoter = "close_by_rps"
	CloseByMaxWorkers  CloseVoter = "close_by_max_workers"
	CloseByAvgDuration CloseVoter = "close_by_avg_duration"
)

func (CloseVoter) String

func (s CloseVoter) String() string

type SpawnVoter

type SpawnVoter string
const (
	SpawnByRPS         SpawnVoter = "spawn_by_rps"
	SpawnByInterval    SpawnVoter = "spawn_by_interval"
	SpawnByMinWorkers  SpawnVoter = "spawn_by_min_workers"
	SpawnByAvgDuration SpawnVoter = "spawn_by_avg_duration"
)

func (SpawnVoter) String

func (s SpawnVoter) String() string

type VoteStrategy

type VoteStrategy string
const (
	AllVotersStrategy       VoteStrategy = "all"
	ManyVotersStrategy      VoteStrategy = "many"
	AtLeastOneVoterStrategy VoteStrategy = "at_least_one"
)

func (VoteStrategy) String

func (s VoteStrategy) String() string

type Weight

type Weight int

Jump to

Keyboard shortcuts

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