file

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package file implements the Streamer interface backed by a file buffer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Streamer

type Streamer struct {
	io.WriteCloser
	// contains filtered or unexported fields
}

func New

func New(filename string) (*Streamer, error)

func (*Streamer) Close

func (s *Streamer) Close() error

func (*Streamer) Follow

func (s *Streamer) Follow(ctx context.Context, offset int64, writer io.Writer) error

func (*Streamer) Stop

func (s *Streamer) Stop()

func (*Streamer) Write

func (s *Streamer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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