file

package
v0.0.0-...-c896b06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBer

type DBer interface {
	UserGet(username, password string) (user.User, error)
	UserGetFromToken(token string) (user.User, error)
	FileExists(URL string) (bool, error)
}

type E3er

type E3er interface {
	Proxy(ctx context.Context, objectURL string) ([]byte, error)
	URL() string
}

type File

type File struct {
	*c.Controller
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, db DBer, e3 E3er, baseURL string) *File

func (*File) ServeHTTP

func (f *File) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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