config

package
v0.0.0-...-c043382 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr        string   `toml:"address"`
	DBPath      string   `toml:"db"`
	UploadsDir  string   `toml:"uploads"`
	BaseURL     string   `toml:"base-url"`
	FilterAllow bool     `toml:"filter-allow"`
	Filter      []string `toml:"filter-types"`
	MaxBodySize int64    `toml:"max-body-size"`
	CSSPath     string   `toml:"css"`
	SiteName    string   `toml:"name"`
	NoAuth      bool     `toml:"no-auth"`
}

func Defaults

func Defaults() *Server

func Load

func Load(path string) (*Server, error)

func Parse

func Parse(r io.Reader) (*Server, error)

Jump to

Keyboard shortcuts

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