config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 4 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 {
	Cleint struct {
		ClientId     string `mapstructure:"client_id"`
		ClientSecret string `mapstructure:"client_secret"`
	} `mapstructure:"client"`
	Proxy struct {
		Addr string `mapstructure:"addr"`
	} `mapstructure:"proxy"`
	MySQL []*MySqlConfig `mapstructure:"mysql"`
}

func GetConfig

func GetConfig() *Config

type MySqlConfig

type MySqlConfig struct {
	Addr      string `mapstructure:"addr,omitempty" json:"addr,omitempty" `
	Username  string `mapstructure:"username,omitempty" json:"username,omitempty" `
	Password  string `mapstructure:"password,omitempty" json:"password,omitempty" `
	Database  string `mapstructure:"database,omitempty" json:"database,omitempty" `
	ConfigKey string `mapstructure:"config_key,omitempty" json:"config_key,omitempty" `
}

Jump to

Keyboard shortcuts

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