conf

package
v0.0.0-...-b7287e2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfiguration

type APIConfiguration struct {
	Port      string
	Host      string
	MachineID string `mapstructure:"machine_id"`
}

APIConfiguration api config

type DBConfiguration

type DBConfiguration struct {
	URL         string
	Dialect     string
	LogMode     bool `mapstructure:"log_mode"`
	MaxOpenConn int  `mapstructure:"max_open_conn"`
	MaxIdelConn int  `mapstructure:"max_idle_conn"`
	AutoMigrate bool `mapstructure:"auto_migrate"`
}

DBConfiguration main db config

type GlobalConfiguration

type GlobalConfiguration struct {
	API     APIConfiguration
	DB      DBConfiguration
	Logging LoggingConfiguration
}

GlobalConfiguration global configuration

type LoggingConfiguration

type LoggingConfiguration struct {
	Level string
}

LoggingConfiguration logger config

Jump to

Keyboard shortcuts

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