internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIsClosed = errors.New("is closed")
	ErrIsFull   = errors.New("is full")
)

Functions

This section is empty.

Types

type Queue

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

func NewQueue

func NewQueue(capacity int) *Queue

func (*Queue) Close

func (q *Queue) Close()

func (*Queue) Push

func (q *Queue) Push(data []byte) error

func (*Queue) Read

func (q *Queue) Read() <-chan []byte

type Signal

type Signal chan struct{}

func (Signal) Send

func (s Signal) Send()

Jump to

Keyboard shortcuts

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