loader

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewTimeoutQueue = NewTimeoutSliceQueue

Functions

This section is empty.

Types

type Loader

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

func NewLoader

func NewLoader(
	conn net.Conn,
	reporter types.LoaderReporter,
	timeout time.Duration,
	disableSendBatching bool,
	log *zap.Logger,
) (*Loader, error)

func (*Loader) DoRequest

func (l *Loader) DoRequest(req types.Req)

func (*Loader) Flush

func (l *Loader) Flush(context.Context)

func (*Loader) Run

func (l *Loader) Run(ctx context.Context) error

func (*Loader) Shutdown

func (l *Loader) Shutdown(ctx context.Context) (err error)

func (*Loader) WaitResponses

func (l *Loader) WaitResponses(ctx context.Context)

type TimeoutQueue

type TimeoutQueue interface {
	Add(streamID uint32)
	Next() (uint32, bool)
	Close()
}

func NewTimeoutSliceQueue

func NewTimeoutSliceQueue(timeout time.Duration) TimeoutQueue

Directories

Path Synopsis
streams

Jump to

Keyboard shortcuts

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