config

package
v0.0.0-...-b2ba615 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CONFIG = `` /* 212-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Secret      string
	ExpiredTime int
}

type Config

type Config struct {
	Server      ServerConfig
	Auth        AuthConfig
	Databases   map[string]DatabaseConfig
	Middlewares map[string]MiddlewareConfig
}

func Initialize

func Initialize() (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	DBName   string
	DBPath   string
}

type MiddlewareConfig

type MiddlewareConfig struct {
	Active bool
}

type ServerConfig

type ServerConfig struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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