anyio

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: BSD-3-Clause Imports: 26 Imported by: 2

Documentation

Index

Constants

View Source
const InitBufferSize = 8 * 1024
View Source
const MaxBufferSize = 10 * 1024 * 1024
View Source
const TrackSize = InitBufferSize

Variables

View Source
var ErrBufferOverflow = errors.New("buffer exceeded max size trying to infer input format")

Functions

func GzipReader

func GzipReader(r io.Reader) (io.Reader, error)

func NewFile

func NewFile(zctx *zed.Context, rc io.ReadCloser, path string, opts ReaderOpts) (*zbuf.File, error)

func NewReader

func NewReader(zctx *zed.Context, r io.Reader) (zio.ReadCloser, error)

func NewReaderWithOpts

func NewReaderWithOpts(zctx *zed.Context, r io.Reader, opts ReaderOpts) (zio.ReadCloser, error)

func NewWriter

func NewWriter(w io.WriteCloser, opts WriterOpts) (zio.WriteCloser, error)

func Open

func Open(ctx context.Context, zctx *zed.Context, engine storage.Engine, path string, opts ReaderOpts) (*zbuf.File, error)

Open uses engine to open path for reading. path is a local file path or a URI whose scheme is understood by engine.

Types

type ReaderOpts

type ReaderOpts struct {
	Format string
	CSV    csvio.ReaderOpts
	ZNG    zngio.ReaderOpts
}

type Recorder

type Recorder struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(r io.Reader) *Recorder

func (*Recorder) Read

func (r *Recorder) Read(b []byte) (int, error)

func (*Recorder) ReadAt

func (r *Recorder) ReadAt(off int, b []byte) (int, error)

type Track

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

func NewTrack

func NewTrack(r *Recorder) *Track

func (*Track) Read

func (t *Track) Read(b []byte) (int, error)

func (*Track) Reset

func (t *Track) Reset()

type WriterOpts

type WriterOpts struct {
	Format string
	Lake   lakeio.WriterOpts
	VNG    vngio.WriterOpts
	ZNG    *zngio.WriterOpts // Nil means use defaults via zngio.NewWriter.
	ZSON   zsonio.WriterOpts
}

Jump to

Keyboard shortcuts

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