http

package
v2.0.0-...-eff2c45 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTokenExpirationTime = time.Hour * 2
)
View Source
const (
	WSWriteDeadline = 10 * time.Second
)

Variables

View Source
var (
	NonModifiableFieldsForNonAdmin = []string{"Username", "Scope", "LockPassword", "Perm", "Commands", "Rules"}
)

Functions

func NewHandler

func NewHandler(
	store *storage.Storage,
	server *settings.Server,
	assetsFs fs.FS,
) (http.Handler, error)

Types

type InfoResponse

type InfoResponse struct {
	Total   uint64         `json:"total"`
	Used    uint64         `json:"used"`
	Sources []share.Source `json:"sources"`
}

type LinkData

type LinkData struct {
	FileInfo files.FileInfo
	Source   share.Source
}

Jump to

Keyboard shortcuts

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