config

package
v0.0.0-...-6e811ef Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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 {
	Server   ServerConfig
	Database DatabaseConfig
}

func GetConfig

func GetConfig() *Config

type DatabaseConfig

type DatabaseConfig struct {
	Url         string
	User        string
	Password    string
	Name        string
	MaxIdleConn int `mapstructure:"max_idle_conn"`
	MaxOpenConn int `mapstructure:"max_open_conn"`
	MaxIdleTime int `mapstructure:"max_idle_time"`
}

type ServerConfig

type ServerConfig struct {
	Name string
	Port int
}

Jump to

Keyboard shortcuts

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