flush

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPeriod deprecated

func WithPeriod(splitFunc bufio.SplitFunc, period time.Duration) bufio.SplitFunc

Deprecated: [v0.88.0] Use WithFunc instead.

Types

type State added in v0.88.0

type State struct {
	LastDataChange time.Time
	LastDataLength int
}

func (*State) Copy added in v0.88.0

func (s *State) Copy() *State

func (*State) Func added in v0.88.0

func (s *State) Func(splitFunc bufio.SplitFunc, period time.Duration) bufio.SplitFunc

Func wraps a bufio.SplitFunc with a timer. When the timer expires, an incomplete token may be returned. The timer will reset any time the data parameter changes.

Jump to

Keyboard shortcuts

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