config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 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 ApiConfig

type ApiConfig struct {
	Name string   `mapstructure:"name"`
	Tags []string `mapstructure:"tags"`
}

type ConsulConfig

type ConsulConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type MySQLConfig

type MySQLConfig struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	Database string `mapstructure:"database"`
	User     string `mapstructure:"user"`
	Password string `mapstructure:"password"`
}

type ServerConfig

type ServerConfig struct {
	Api        ApiConfig     `mapstructure:"api"`
	Service    ServiceConfig `mapstructure:"service"`
	MySQL      MySQLConfig   `mapstructure:"mysql"`
	Consul     ConsulConfig  `mapstructure:"consul"`
	CommonName string        `mapstructure:"common_name"`
	Debug      bool          `mapstructure:"debug"`
}

type ServiceConfig

type ServiceConfig struct {
	Edge string `mapstructure:"edge"`
}

Jump to

Keyboard shortcuts

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