local

package
v0.0.1-0...-1b1769d Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(dir string) (*Local, error)

func (*Local) Delete

func (l *Local) Delete(id string) error

func (*Local) List

func (l *Local) List() ([]string, error)

func (*Local) Name

func (l *Local) Name() string

func (*Local) Read

func (l *Local) Read(id string) (io.ReadCloser, error)

func (*Local) ReadMetadata

func (l *Local) ReadMetadata(id string) (string, string, int64, time.Time, error)

func (*Local) Serve

func (l *Local) Serve(w http.ResponseWriter, r *http.Request, id string, filename string, mimetype string, timestamp time.Time, attachment bool) error

func (*Local) Write

func (l *Local) Write(id string, r io.ReadSeeker, filename string, mimetype string) (int64, error)

Jump to

Keyboard shortcuts

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