config

package
v0.0.0-...-7f52212 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 0 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 Server `mapstructure:"server" json:"server" yaml:"server"`
	Mysql  Mysql  `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
	Consul Consul `mapstructure:"consul" json:"consul" yaml:"consul"`
}

type Consul

type Consul struct {
	Host string   `mapstructure:"host"`
	Port int      `mapstructure:"port"`
	Name string   `mapstructure:"name"`
	Tags []string `mapstructure:"tags"`
}

type Mysql

type Mysql struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	Name     string `mapstructure:"name"`
	User     string `mapstructure:"user"`
	Password string `mapstructure:"password"`
}

type Server

type Server struct {
	Host    string `mapstructure:"host"`
	LogPath string `mapstructure:"logPath"`
}

Jump to

Keyboard shortcuts

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