tinywheel

package
v0.0.0-...-4220e20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Conns map[interface{}]interface{}
	Num   uint16
	Next  *Entry
}

type TinyWheel

type TinyWheel struct {
	MaxTime uint16
	Tail    *Entry
	Head    *Entry
	Chucks  []*Entry
}

func (*TinyWheel) Add

func (this *TinyWheel) Add(conn interface{}, times interface{}) uint16

func (*TinyWheel) Del

func (this *TinyWheel) Del(conn interface{}, num uint16)

func (*TinyWheel) Keep

func (this *TinyWheel) Keep(conn interface{}, num uint16, times uint8) uint16

func (*TinyWheel) Loop

func (this *TinyWheel) Loop() *map[interface{}]interface{}

loop in tick

func (*TinyWheel) Pop

func (this *TinyWheel) Pop(num uint16, key interface{}) (interface{}, bool)

func (*TinyWheel) Size

func (this *TinyWheel) Size() uint32

Jump to

Keyboard shortcuts

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