votestrategy

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllVoters

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

func NewAllVoters

func NewAllVoters(
	spawnVoters []voter.Voter,
	closeVoters []voter.Voter,
) *AllVoters

func (*AllVoters) For

func (v *AllVoters) For() (action enum.Action, sleep time.Duration)

type AtLeastOneVoter

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

func NewAtLeastOneVoter

func NewAtLeastOneVoter(
	spawnVoters []voter.Voter,
	closeVoters []voter.Voter,
) *AtLeastOneVoter

func (*AtLeastOneVoter) For

func (v *AtLeastOneVoter) For() (action enum.Action, sleep time.Duration)

type ManyVoters

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

func NewManyVoters

func NewManyVoters(
	spawnVoters []voter.Voter,
	closeVoters []voter.Voter,
) *ManyVoters

func (*ManyVoters) For

func (v *ManyVoters) For() (action enum.Action, sleep time.Duration)

Jump to

Keyboard shortcuts

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