pull_through

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event string
const (
	DataEvent Event = "data"
	EndEvent  Event = "end"
	ErrEvent  Event = "error"
)

type Option

type Option func(through *Through)

func WithEnder

func WithEnder(ender func()) Option

func WithWriter

func WithWriter(writer func(interface{})) Option

type Through

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

func NewThrough

func NewThrough(opts ...Option) *Through

func (*Through) Emit

func (t *Through) Emit(event Event, data interface{})

func (*Through) EnQueue

func (t *Through) EnQueue(data interface{})

func (*Through) Through

func (t *Through) Through() pull.Through

Jump to

Keyboard shortcuts

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