httpjson

package
v0.0.0-...-49e5460 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientStream

func NewClientStream(r io.ReadCloser) stream.ClientStream

func NewServerStream

func NewServerStream(ctx context.Context, chunkSize int, flushInterval time.Duration, w io.Writer) stream.ServerStream

Types

type ClientStream

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

func (*ClientStream) Close

func (s *ClientStream) Close() error

func (*ClientStream) Recv

func (s *ClientStream) Recv() (record.Record, error)

type ServerStream

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

The guy that actually writes things out

func (*ServerStream) Close

func (s *ServerStream) Close() error

Close will close the server stream, disallowing all future sends

func (*ServerStream) SendError

func (s *ServerStream) SendError(err error) error

SendError will send the error err down the stream or return an error on its own

func (*ServerStream) SendResult

func (s *ServerStream) SendResult(r record.Record) error

SendResult will send the result r or return an error.

Jump to

Keyboard shortcuts

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