config

package
v0.0.0-...-2c85299 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliConfig

type CliConfig struct {
	System  *int
	Node    *int
	Host    *string
	Port    *int
	Cfgpath *string
}

type Config

type Config struct {
	Environment *CliConfig
	Vendor      *Vendor
	Database    *Database
}

func LoadConfig

func LoadConfig() (conf Config, err *error)

type Database

type Database struct {
	Mongo *MongoDb
	Redis *RedisDb
}

type MongoDb

type MongoDb struct {
	Host     string
	Port     string
	Username string
	Password string
	Database string
}

type RedisDb

type RedisDb struct {
	Host     string
	Port     string
	Password string
	Database string
}

type Vendor

type Vendor struct {
	Url         string
	LoginPath   string
	SendMsgPath string
	Username    string
	Password    string
}

Jump to

Keyboard shortcuts

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