config

package
v0.0.0-...-6450484 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 3 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 {
	Service ServiceConfig `mapstructure:"service"`
	MySql   MysqlConfig   `mapstructure:"mysql"`
}
var AppConfig Config

type MysqlConfig

type MysqlConfig struct {
	User       string `mapstructure:"user"`
	Password   string `mapstructure:"password"`
	Host       string `mapstructure:"host"`
	Port       int    `mapstructure:"port"`
	DbName     string `mapstructure:"db_name"`
	Parameters string `mapstructure:"parameters"`
}

type ServiceConfig

type ServiceConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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