config

package
v0.0.0-...-2c51fd6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 1 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 {
	Domain    string `mapstructure:"domain"`
	SecretKey string `mapstructure:"secret_key"`
	Http      struct {
		Addr    string        `mapstructure:"addr"`
		Timeout time.Duration `mapstructure:"timeout"`
		Debug   bool          `mapstructure:"debug"`
	} `mapstructure:"http"`
	LogLevel string `mapstructure:"log_level"`
	Database struct {
		Driver string `mapstructure:"driver"`
		Source string `mapstructure:"source"`
	} `mapstructure:"database"`
	OAuth struct {
		Github struct {
			ClientId     string `mapstructure:"client_id"`
			ClientSecret string `mapstructure:"client_secret"`
		} `mapstructure:"github"`
	} `mapstructure:"oauth"`
}

Jump to

Keyboard shortcuts

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