queue

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IQueue

type IQueue interface {
	// Priority 优先级
	Priority() int
	// Delay 延迟时间
	Delay() int
	// Call 回调函数
	Call(args ...interface{})
}

IQueue 队列信息

type Instance

type Instance struct {
	*Node
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() *Instance

NewInstance @Description: @return *Queue

func (*Instance) GetSize

func (this *Instance) GetSize() int

func (*Instance) IsEmpty

func (this *Instance) IsEmpty() bool

func (*Instance) LPop

func (this *Instance) LPop() IQueue

func (*Instance) LPush

func (this *Instance) LPush(data IQueue)

func (*Instance) RProp

func (this *Instance) RProp() IQueue

func (*Instance) RPush

func (this *Instance) RPush(data IQueue)

type Node

type Node struct {
	Data IQueue
	Next *Node
}

Jump to

Keyboard shortcuts

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