config

package
v0.0.0-...-96dbec4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurations

type Configurations struct {
	Server *ServerConfig
	Mongo  *MongoConfig
	Redis  *RedisConfig
}

func Config

func Config() *Configurations

type MongoConfig

type MongoConfig struct {
	Username string
	Password string
	Host     string
	DBName   string
	Query    string
}

type RedisConfig

type RedisConfig struct {
	Address  string
	UserName string
	Password string
	DB       int
}

type ServerConfig

type ServerConfig struct {
	Port          string
	Admin         string
	AccessSecret  string
	AccessExpire  int64
	RefreshExpire int64
	RefreshSecret string
}

Jump to

Keyboard shortcuts

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