config

package
v0.0.0-...-fa23fe4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServerHost         string
	ServerPort         string
	LogFormatter       string // Possible values: fmt, json.
	LogLevel           string // Possible values: error, warn, info, debug.
	AccessLogEnabled   bool
	AccessLogSkipPaths []string
	ReadTimeout        time.Duration
	ReadHeaderTimeout  time.Duration
	WriteTimeout       time.Duration
	TLSCrtFile         string
	TLSKeyFile         string
	TLSCAFile          string
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig creates a new Config object with default values.

Jump to

Keyboard shortcuts

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