stream

package
v0.0.0-...-b4339e2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrotePastMaxLogLength = errors.New("wrote past max length")

Functions

This section is empty.

Types

type IStream

type IStream interface {
	Write(p []byte) (n int, err error)
	Pipe()
	Flush()
	Close()
	Done()
	AddSocketBackend(endpoint string) *Stream
	AddHttpBackend(w io.Writer) *Stream
	AddStdoutBackend(w io.Writer) *Stream
	AddFileBackend(dir, file string) *Stream
}

type Stream

type Stream struct {
	io.Writer
	// contains filtered or unexported fields
}

func NewStream

func NewStream() *Stream

func (*Stream) AddHttpBackend

func (s *Stream) AddHttpBackend(w io.Writer) *Stream

func (*Stream) AddSocketBackend

func (s *Stream) AddSocketBackend(endpoint string) *Stream

func (*Stream) Close

func (s *Stream) Close()

func (*Stream) Done

func (s *Stream) Done()

func (*Stream) Flush

func (s *Stream) Flush()

func (*Stream) Pipe

func (s *Stream) Pipe()

func (*Stream) Write

func (s *Stream) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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