Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxReqBodySize = 4 * 1024 * 1024
DefaultMaxReqBodySize defines the default maximum request body size in bytes.
View Source
const IDValidCharDict = "abcdefghijklmnopqrstuvwxyz" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
"0123456789" +
"_-"
View Source
const MinReqBodySize = 256
MinReqBodySize defines the minimum accepted value for `max-request-body-size` in bytes.
Variables ¶
View Source
var ConfigFileExtension = regexp.MustCompile(`\.(yml|yaml)$`)
View Source
var ErrPathNotAbsolute = errors.New("path is not starting with /")
View Source
var ErrURLNoHost = errors.New("host is not defined")
View Source
var ErrURLProtocolProblem = errors.New("protocol is not supported or undefined")
View Source
var TemplateFileExtension = regexp.MustCompile(`\.gqt$`)
View Source
var ValidProtocolSchemes = []string{"http", "https"}
Functions ¶
func ValidateID ¶
Types ¶
type APIServerConfig ¶
type Config ¶
type Config struct { Proxy ProxyServerConfig API *APIServerConfig Services *hamap.Map[[]byte, *Service] ServicesEnabled []*Service }
type ErrorAlien ¶
type ErrorAlien struct {
Items []string
}
func (ErrorAlien) Error ¶
func (e ErrorAlien) Error() string
type ErrorDuplicate ¶
func (ErrorDuplicate) Error ¶
func (e ErrorDuplicate) Error() string
type ErrorIllegal ¶
func (ErrorIllegal) Error ¶
func (e ErrorIllegal) Error() string
type ErrorMissing ¶
func (ErrorMissing) Error ¶
func (e ErrorMissing) Error() string
type ProxyServerConfig ¶
Click to show internal directories.
Click to hide internal directories.