anyio

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: 27 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, demandOut demand.Demand, opts ReaderOpts) (*zbuf.File, error)

func NewReader

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

func NewReaderWithOpts

func NewReaderWithOpts(zctx *zed.Context, r io.Reader, demandOut demand.Demand, 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, demandOut demand.Demand, 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 io.Reader) *Track

func (*Track) Read

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

func (*Track) Reader added in v1.11.0

func (t *Track) Reader() io.Reader

func (*Track) Reset

func (t *Track) Reset()

type WriterOpts

type WriterOpts struct {
	Format string
	Lake   lakeio.WriterOpts
	CSV    csvio.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