internal

package
v0.0.0-...-5a91f4f Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B  = 1
	KB = 1024 * B
	MB = 1024 * KB
	GB = 1024 * MB
)

Variables

This section is empty.

Functions

func NotImplemented

func NotImplemented(logger *zerolog.Logger)

func SetLogger

func SetLogger(newLogger zerolog.Logger)

Types

type Server

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

func NewServer

func NewServer(listen string, options ...ServerOption) *Server

func (*Server) Listen

func (s *Server) Listen(addr string) error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServerOption

type ServerOption func(*serverOptions) error

func EnableFullErrorsResponse

func EnableFullErrorsResponse() ServerOption

func EnableTls

func EnableTls(tlsCertPath, tlsKeyPath string) ServerOption

func MaxContentSize

func MaxContentSize(maxContentSize int) ServerOption

func MaxFilenameLength

func MaxFilenameLength(maxFilenameLength int) ServerOption

func TempDir

func TempDir(dir string) ServerOption

func Templates

func Templates(dir string) ServerOption

Jump to

Keyboard shortcuts

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