Documentation ¶
Index ¶
- type Vote
- func (v *Vote) Add(key interface{}, agree bool)
- func (v *Vote) CallbackAdd(f ...func(ts time.Duration, deadlineTs int64, key interface{}, agree bool))
- func (v *Vote) CallbackCancel(f ...func(ts int64))
- func (v *Vote) CallbackFail(f ...func(ts int64))
- func (v *Vote) CallbackPass(f ...func(ts int64))
- func (v *Vote) Cancel()
- func (v *Vote) Deadline(delay proxy.Delay, ts time.Duration, pass bool, first bool)
- func (v *Vote) End() bool
- func (v *Vote) Exist(key interface{}, op ...bool) bool
- func (v *Vote) Full(deadline bool, ts int64)
- func (v *Vote) FullEnd()
- func (v *Vote) Num() int
- func (v *Vote) Range(f func(key interface{}, op bool) bool)
- func (v *Vote) Reset()
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 (*Vote) CallbackAdd ¶
func (*Vote) CallbackCancel ¶
func (*Vote) CallbackFail ¶
func (*Vote) CallbackPass ¶
Click to show internal directories.
Click to hide internal directories.