queue

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_QUEUE_CAP = 1024
)

Variables

View Source
var (
	POOL_EMIPTY = errors.New("pool is empty")
	POOL_FULL   = errors.New("pool is full")
)

Functions

func New

func New(cap ...int) io.ReadWriter

func NewQueueSize

func NewQueueSize(size int, cap ...int) io.ReadWriter

Types

type Queue

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

func (*Queue) Read

func (q *Queue) Read(b []byte) (n int, err error)

func (*Queue) Write

func (q *Queue) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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