http

package
v0.0.0-...-8577a5a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTypes

func GetTypes(cfg HTTPConfig) http.HandlerFunc

Types

type HTTPConfig

type HTTPConfig struct {
	MaxBodySize datasize.ByteSize `toml:"maxBodySize"`
	// inherit upload's config
	upload.UploadConfig
}

func NewConfig

func NewConfig() HTTPConfig

func (*HTTPConfig) Validate

func (c *HTTPConfig) Validate() error

type Routes

type Routes struct {
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(db *db.Database, cfg HTTPConfig) (*Routes, error)

Directories

Path Synopsis
internal
tx
atomdl
Package atomdl provides helper functions to allow atomic file downloads.
Package atomdl provides helper functions to allow atomic file downloads.
ff

Jump to

Keyboard shortcuts

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