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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig(filePath string) (err error)

Types

type MainConfig

type MainConfig struct {
	ServiceName string               `mapstructure:"servicename"`
	Environment string               `mapstructure:"environment"`
	Log         configs.LoggerConfig `mapstructure:"log"`
	DB          configs.DBConfig     `mapstructure:"database"`
	Web         WebServerConfig      `mapstructure:"webserver"`
	RabbitMQURL string               `mapstructure:"rabbitmqurl"`
}

func GetConfig

func GetConfig() *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