local

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientStream

func NewClientStream(ctx context.Context, resultsChan chan record.Record, errorChan chan error) stream.ClientStream

func NewServerStream

func NewServerStream(ctx context.Context, resultsChan chan record.Record, errorChan chan error) stream.ServerStream

TODO: context

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