configmanager

package
v0.0.0-...-62ce7da Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAppConfig

func InitAppConfig(file string) error

Types

type AppConfig

type AppConfig struct {
	Port        string      `json:"port"`
	LogFilePath string      `json:"logFilePath"`
	Mongodb     MongoConfig `json:"mongodb"`
	APIEp       string      `json:"apiep"`
}
var (
	AppConf *AppConfig
)

func GetAppConfig

func GetAppConfig() *AppConfig

type MongoConfig

type MongoConfig struct {
	DriverName string `json:"driverName"`
	SourceURL  string `json:"sourceURL"`
	Database   string `json:"database"`
}

Jump to

Keyboard shortcuts

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