local

package
v0.0.0-...-5767ed4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryToken = "token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func New

func New(k kv.KV) (*Module, error)

func (*Module) GetFile

func (m *Module) GetFile(_ context.Context, group string, hash []byte, suffix string) ([]byte, filestore.Error)

func (*Module) GetPresignedURL

func (m *Module) GetPresignedURL(ctx context.Context, group string, hash []byte, suffix string) (*url.URL, filestore.Error)

func (*Module) Name

func (*Module) Name() string

func (*Module) ProcessError

func (*Module) ProcessError(err error) filestore.Error

ProcessError replaces any known values with our own db.Error types.

func (*Module) PutFile

func (m *Module) PutFile(_ context.Context, group string, hash []byte, suffix string, data []byte) filestore.Error

func (Module) Route

func (m Module) Route(s *http.Server) error

func (*Module) SetServer

func (m *Module) SetServer(s *http.Server)

SetServer adds a reference to the server to the module.

func (*Module) WrapInMiddlewares

func (m *Module) WrapInMiddlewares(h http.Handler) http.Handler

Jump to

Keyboard shortcuts

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