settings

package
v0.0.0-...-d135f55 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfigFile

func ReadConfigFile(path string) error

func WriteDebugLog

func WriteDebugLog(v interface{})

func WriteInfoLog

func WriteInfoLog(v interface{})

func WriteLog

func WriteLog(r *http.Request, code int, erro error, action string)

Types

type Configuration

type Configuration struct {
	AppName             string
	AppUrl              string
	DBHost              string
	DBDatabase          string
	DBUser              string
	DBPassword          string
	DBPort              string
	TokenSecret         string
	CookieTimeSecond    int
	TokenTimeHour       time.Duration
	GormLogMode         bool
	TestMode            bool
	LogIndent           bool
	AdminUsername       string
	AdminPassword       string
	AdminEmail          string
	EmailSender         string
	SplunkAdminUsername string
	SplunkAdminPassword string
	DPLYSSHUser         string
	DPLYSSHPassword     string
	MailServer          string
	ProdSHC             string
	Proxy               string
	EnableHTTPS         bool
	Cert                string
	Key                 string
}

func GetConfig

func GetConfig() Configuration

type Log

type Log struct {
	Time         string
	Message      string
	ResponseCode int
	Action       string
	Method       string
	URI          string
	User         string
	RequestData  string
}

Jump to

Keyboard shortcuts

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