file

package
v0.0.0-...-489f5a9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Types

type Config

type Config struct {
	Network              string
	BasePath             string
	BufferSize           uint64
	FlushIntervalSeconds int
	Source               string
}

type FS

type FS interface {
	Open(name string) (File, error)
	Create(name string) (File, error)
	Delete(name string) error
}

type File

type File interface {
	io.Reader
	io.Writer
	io.Closer
}

type OSFS

type OSFS struct{}

func (OSFS) Create

func (OSFS) Create(name string) (File, error)

func (OSFS) Delete

func (OSFS) Delete(name string) error

func (OSFS) Open

func (OSFS) Open(name string) (File, error)

Jump to

Keyboard shortcuts

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