logger

package
v0.0.0-...-0265167 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	backend.Backend
}

func New

func New(be backend.Backend) *Backend

func (*Backend) Close

func (be *Backend) Close() error

func (*Backend) Delete

func (be *Backend) Delete(ctx context.Context) error

func (*Backend) IsNotExist

func (be *Backend) IsNotExist(err error) bool

func (*Backend) List

func (be *Backend) List(ctx context.Context, t backend.FileType, fn func(backend.FileInfo) error) error

func (*Backend) Load

func (be *Backend) Load(ctx context.Context, h backend.Handle, length int, offset int64, fn func(io.Reader) error) error

func (*Backend) Remove

func (be *Backend) Remove(ctx context.Context, h backend.Handle) error

Remove deletes a file from the backend.

func (*Backend) Save

Save adds new Data to the backend.

func (*Backend) Stat

func (be *Backend) Stat(ctx context.Context, h backend.Handle) (backend.FileInfo, error)

func (*Backend) Unwrap

func (be *Backend) Unwrap() backend.Backend

Jump to

Keyboard shortcuts

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