hostenv

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dev  = "dev"
	Prod = "prod"
	Test = "test"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostConfig

type HostConfig struct {
	Name     string          `mapstructure:"name"`
	Metadata string          `mapstructure:"metadata"`
	Server   WebServerConfig `mapstructure:"server"`
}

type HttpServerConfig added in v1.6.1

type HttpServerConfig struct {
	IsTLS    bool
	Addr     string
	CertFile string `mapstructure:"cert"`
	KeyFile  string `mapstructure:"key"`
}

http server configuration

type StaticConfig

type StaticConfig struct {
	Patten  string `mapstructure:"patten"`
	WebRoot string `mapstructure:"webroot"`
}

type WebServerConfig added in v1.6.1

type WebServerConfig struct {
	ServerType     string           `mapstructure:"type"`
	Address        string           `mapstructure:"address"`
	MaxRequestSize int64            `mapstructure:"max_request_size"`
	Static         StaticConfig     `mapstructure:"static"`
	Tls            HttpServerConfig `mapstructure:"tls"`
}

Jump to

Keyboard shortcuts

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