queryio

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query added in v1.0.0

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

func NewQuery added in v1.0.0

func NewQuery(rc io.ReadCloser) *Query

NewQuery returns a Query that reads a ZNG-encoded query response from rc and decodes it. Closing the Query also closes rc.

func (*Query) Close added in v1.0.0

func (q *Query) Close() error

func (*Query) Read added in v1.0.0

func (q *Query) Read() (*zed.Value, error)

type Writer added in v1.0.0

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

func NewWriter added in v1.0.0

func NewWriter(w io.WriteCloser, format string, flusher http.Flusher, ctrl bool) (*Writer, error)

func (*Writer) Close added in v1.0.0

func (w *Writer) Close() error

func (*Writer) WhiteChannelEnd added in v1.0.0

func (w *Writer) WhiteChannelEnd(channelID int) error

func (*Writer) WriteBatch added in v1.0.0

func (w *Writer) WriteBatch(cid int, batch zbuf.Batch) error

func (*Writer) WriteControl added in v1.0.0

func (w *Writer) WriteControl(value interface{}) error

func (*Writer) WriteError added in v1.0.0

func (w *Writer) WriteError(err error)

func (*Writer) WriteProgress added in v1.0.0

func (w *Writer) WriteProgress(stats zbuf.Progress) 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 ZNGWriter

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

func NewZNGWriter

func NewZNGWriter(w io.Writer) *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