conf

package
v0.0.0-...-3f800da Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppSetting = &App{}
View Source
var DatabaseSetting = &Database{}
View Source
var ServerSetting = &Server{}

Functions

func Setup

func Setup()

Setup initialize the configuration instance

Types

type App

type App struct {
	Name           string
	Url            string
	PwdSalt        string
	JwtSecret      string
	CheckSecretKey string
}

type Database

type Database struct {
	DbType string
	DbUser string
	DbPass string
	DbHost string
	DbPort int
	DbName string
}

type Server

type Server struct {
	RunMode      string
	HttpPort     int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	MaxDiskSize  int
}

Jump to

Keyboard shortcuts

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