vote

package
v0.0.0-...-c314f80 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vote

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

func New

func New(min, max int) *Vote

func (*Vote) Add

func (v *Vote) Add(key interface{}, agree bool)

func (*Vote) CallbackAdd

func (v *Vote) CallbackAdd(f ...func(ts time.Duration, deadlineTs int64, key interface{}, agree bool))

func (*Vote) CallbackCancel

func (v *Vote) CallbackCancel(f ...func(ts int64))

func (*Vote) CallbackFail

func (v *Vote) CallbackFail(f ...func(ts int64))

func (*Vote) CallbackPass

func (v *Vote) CallbackPass(f ...func(ts int64))

func (*Vote) Cancel

func (v *Vote) Cancel()

func (*Vote) Deadline

func (v *Vote) Deadline(delay proxy.Delay, ts time.Duration, pass bool, first bool)

func (*Vote) End

func (v *Vote) End() bool

func (*Vote) Exist

func (v *Vote) Exist(key interface{}, op ...bool) bool

func (*Vote) Full

func (v *Vote) Full(deadline bool, ts int64)

func (*Vote) FullEnd

func (v *Vote) FullEnd()

func (*Vote) Num

func (v *Vote) Num() int

func (*Vote) Range

func (v *Vote) Range(f func(key interface{}, op bool) bool)

func (*Vote) Reset

func (v *Vote) Reset()

Jump to

Keyboard shortcuts

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