disk

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

Queue implements on-disk buffering queue

func New

func New(dataDir string, fileSize int) (*Queue, error)

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Put

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

func (*Queue) ReadChan

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

Jump to

Keyboard shortcuts

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