queryio

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunClientResponse

func RunClientResponse(ctx context.Context, d driver.Driver, res *client.Response) (zbuf.ScannerStats, error)

Types

type ControlWriter

type ControlWriter interface {
	zio.WriteCloser
	WriteControl(interface{}) error
}

type Driver

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

func NewDriver

func NewDriver(w io.WriteCloser, format string, ctrl bool) (*Driver, error)

func (*Driver) ChannelEnd

func (d *Driver) ChannelEnd(channelID int) error

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) Error

func (d *Driver) Error(err error)

func (*Driver) Stats

func (d *Driver) Stats(stats zbuf.ScannerStats) error

func (*Driver) Warn

func (d *Driver) Warn(warning string) error

func (*Driver) Write

func (d *Driver) Write(cid int, batch zbuf.Batch) error

func (*Driver) WriteControl

func (d *Driver) WriteControl(value interface{}) error

type ZJSONWriter

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

func NewZJSONWriter

func NewZJSONWriter(w io.Writer) *ZJSONWriter

func (*ZJSONWriter) Close

func (w *ZJSONWriter) Close() error

func (*ZJSONWriter) Write

func (w *ZJSONWriter) Write(rec *zed.Value) error

func (*ZJSONWriter) WriteControl

func (w *ZJSONWriter) WriteControl(v interface{}) error

type ZNGReader

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

func NewZNGReader

func NewZNGReader(r *zngio.Reader) *ZNGReader

func (*ZNGReader) ReadPayload

func (r *ZNGReader) ReadPayload() (*zed.Value, interface{}, error)

type ZNGWriter

type ZNGWriter struct {
	*zngio.Writer
	// contains filtered or unexported fields
}

func NewZNGWriter

func NewZNGWriter(w io.WriteCloser) *ZNGWriter

func (*ZNGWriter) WriteControl

func (w *ZNGWriter) WriteControl(v interface{}) error

Jump to

Keyboard shortcuts

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