queue

package
v0.0.0-...-c455b0d Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyQueue = errors.New("Queue is empty")
)
View Source
var (
	ZeroTime = time.Unix(0, 0)
)

Functions

This section is empty.

Types

type IntQueue

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

func NewIntQueue

func NewIntQueue(capacity int) *IntQueue

func (*IntQueue) Head

func (q *IntQueue) Head() (int64, error)

func (*IntQueue) Pop

func (q *IntQueue) Pop() (int64, error)

func (*IntQueue) Push

func (q *IntQueue) Push(val int64)

func (*IntQueue) Size

func (q *IntQueue) Size() int

type TimeQueue

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

func NewTimeQueue

func NewTimeQueue(capacity int) *TimeQueue

func (*TimeQueue) Head

func (q *TimeQueue) Head() (time.Time, error)

func (*TimeQueue) Pop

func (q *TimeQueue) Pop() (time.Time, error)

func (*TimeQueue) Push

func (q *TimeQueue) Push(val time.Time)

func (*TimeQueue) Size

func (q *TimeQueue) Size() int

Jump to

Keyboard shortcuts

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