stream

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*config)

func WithCallbackParallel

func WithCallbackParallel(parallel int) Option

func WithFlushBatchSize

func WithFlushBatchSize(size int) Option

func WithFlushDelayTime

func WithFlushDelayTime(d time.Duration) Option

type PendingID

type PendingID interface{}

type PendingTask

type PendingTask interface {
	OnTimeout(pid PendingID)
}

type Scheduler

type Scheduler interface {
	Close()

	Register(z zone.Interface, wo int64, direct bool) Stream
	Unregister(s Stream)
}

func NewScheduler

func NewScheduler(e engine.Interface, opts ...Option) Scheduler

type Stream

type Stream interface {
	// Zone() zone.Interface
	WriteOffset() int64

	Append(r stdio.Reader, cb io.WriteCallback)
	Sync()
}

Jump to

Keyboard shortcuts

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