buffered_input

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 2 Imported by: 6

README

buffered-input

Useful library for handling multiple inputs at once.

License

Licensed under the MIT License

Authors

Copyright(c) 2020 Fred Chien cfsghost@gmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedInput

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

func NewBufferedInput

func NewBufferedInput(options *Options) *BufferedInput

func (*BufferedInput) Close

func (bi *BufferedInput) Close()

func (*BufferedInput) Flush

func (bi *BufferedInput) Flush() error

func (*BufferedInput) Push

func (bi *BufferedInput) Push(data interface{})

type DataHandlerFunc

type DataHandlerFunc func([]interface{})

type Options

type Options struct {
	ChunkSize  int
	ChunkCount int
	Timeout    time.Duration
	Handler    DataHandlerFunc
}

func NewOptions

func NewOptions() *Options

Jump to

Keyboard shortcuts

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