config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(data []byte)

LoadConfig loads the config from the given config data

func TLSEnabled

func TLSEnabled() bool

TLSEnabled checks if TLS is enabled

Types

type ServerConf

type ServerConf struct {
	Port uint16  `yaml:"port"`
	TLS  tlsConf `yaml:"tls"`
	Host string  `yaml:"host_name"`
}

ServerConf holds config about the web server

func Get

func Get() *ServerConf

Get returns the server config

Jump to

Keyboard shortcuts

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