buffer

package
v3.11.38 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayedBuffer

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

DelayedBuffer is the buffer that holds items until either the buffer filled or a specified time limit is reached

func NewDelayedBuffer

func NewDelayedBuffer(size int, maxWait time.Duration, w io.Writer) *DelayedBuffer

func (*DelayedBuffer) Close

func (b *DelayedBuffer) Close() error

func (*DelayedBuffer) Put

func (b *DelayedBuffer) Put(items ...[]byte)

func (*DelayedBuffer) Write

func (b *DelayedBuffer) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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