config

package
v0.0.0-...-5110490 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	RELEASE
)
View Source
const (
	RunMode                 = DEBUG // RELEASE
	LogLevel                = "DEBUG"
	DefaultLogName          = "application"
	DefaultSecret           = "156RFT$%Aasa"
	DefaultTokenExpireOfDay = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting struct {
	InitDB  bool   `json:"initDB" default:"false" usage:"if init db from database/sql file, default not init"`
	RunMode int    `json:"runMode" default:"0" usage:"the run mode, default is debug 0, you can change release as 1"`
	DBType  string `json:"dbType" default:"sqlite3" usage:"indicate which db engine will use, optional mysql or sqllite, default is sqllite"`
	DBUrl   string `json:"dbUrl" default:"test.db" usage:"the contect url of db, default use sqlite with test.db in current path"`
}

func ParseCmd

func ParseCmd() *Setting

Jump to

Keyboard shortcuts

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