Documentation ¶
Index ¶
- func IsTerminal(w io.Writer) bool
- func NewFileFromPath(ctx context.Context, engine storage.Engine, path string, unbuffered bool, ...) (zio.WriteCloser, error)
- func NewFileFromURI(ctx context.Context, engine storage.Engine, path *storage.URI, unbuffered bool, ...) (zio.WriteCloser, error)
- func NewSizeSplitter(ctx context.Context, engine storage.Engine, dir *storage.URI, prefix string, ...) (zio.WriteCloser, error)
- type Bytes
- type Split
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func NewFileFromPath ¶
func NewFileFromURI ¶
func NewSizeSplitter ¶ added in v1.2.0
func NewSizeSplitter(ctx context.Context, engine storage.Engine, dir *storage.URI, prefix string, unbuffered bool, opts anyio.WriterOpts, size int64) (zio.WriteCloser, error)
NewSizeSplitter returns a zio.WriteCloser that writes to sequentially numbered files created by engine in dir with optional prefix and with opts, creating a new file after the current one reaches size bytes. Files may exceed size substantially due to buffering in the underlying writer as determined by opts.Format.
Types ¶
Click to show internal directories.
Click to hide internal directories.