configuration

package
v0.1.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(conf Configuration, exPath string) (*gorm.DB, error)

Types

type Configuration

type Configuration struct {
	Listen     string `json:"listen"`
	PrivateKey string `json:"privatekey"`
	PublicCert string `json:"publiccert"`
	CaCert     string `json:"cacert"`
	// StaPath         string   `json:"stapath"`
	DB              string   `json:"dbpath"`
	ServiceName     string   `json:"servicename"`
	ServiceFullName string   `json:"servicefullname"`
	LogLevel        string   `json:"loglevel"`
	LogPath         string   `json:"logpath"`
	EzbPki          string   `json:"ezb_pki"`
	ReportCaller    bool     `json:"reportcaller"`
	JsonToStdout    bool     `json:"jsonstdout"`
	SAN             []string `json:"san"`
}

func CheckConfig

func CheckConfig(isIntSess bool, exPath string) (conf Configuration, err error)

Jump to

Keyboard shortcuts

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