acceptance

package
v1.0.0-alpha.25 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ThresholdProvider

func ThresholdProvider(totalWeightProvider func() int64) func() int64

Types

type State

type State uint8

State represents the acceptance state of an entity.

const (
	// Pending is the state of pending spenders.
	Pending State = iota

	// Accepted is the state of accepted spenders.
	Accepted

	// Rejected is the state of rejected spenders.
	Rejected
)

func (State) IsAccepted

func (c State) IsAccepted() bool

IsAccepted returns true if the State is Accepted.

func (State) IsPending

func (c State) IsPending() bool

IsPending returns true if the State is Pending.

func (State) IsRejected

func (c State) IsRejected() bool

IsRejected returns true if the State is Rejected.

func (State) String

func (c State) String() string

String returns a human-readable representation of the State.

Jump to

Keyboard shortcuts

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