core

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMainConfig

func SetMainConfig(path string) (err error)

Types

type MainConfig

type MainConfig struct {
	ServiceName string                 `mapstructure:"servicename"`
	Environment string                 `mapstructure:"environment"`
	Log         configs.LoggerConfig   `mapstructure:"log"`
	ETCD        etcdclient.ETCDConfigs `mapstructure:"etcd"`
	Redis       redisdb.RedisConfig    `mapstructure:"redis"`
	WebServer   WebServerConfig        `mapstructure:"webserver"`
	RabbitMQURL string                 `mapstructure:"rabbitmqurl"`
}

func GetMainConfig

func GetMainConfig() *MainConfig

type WebServerConfig

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

Jump to

Keyboard shortcuts

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