configuration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: AGPL-3.0 Imports: 14 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)

/ InitDB create database schema.

func InitLic

func InitLic(lic *License, db *gorm.DB) error

Types

type Configuration

type Configuration struct {
	ListenJWT       string             `json:"listenjwt"`
	ListenPKI       string             `json:"listenpki"`
	PrivateKey      string             `json:"privatekey"`
	PublicCert      string             `json:"publiccert"`
	CaCert          string             `json:"cacert"`
	DB              string             `json:"db"`
	SQLITE          SQLite             `json:"sqlite"`
	ServiceName     string             `json:"servicename"`
	ServiceFullName string             `json:"servicefullname"`
	EzbPki          string             `json:"ezb_pki"`
	SAN             []string           `json:"san"`
	STA             string             `json:"default_sta"`
	Logger          confmanager.Logger `json:"logger"`
}

type GormLogger

type GormLogger struct{}

func (*GormLogger) Print

func (*GormLogger) Print(v ...interface{})

type License

type License struct {
	WksLimit int
	ApiLimit int
}

type MYSql

type MYSql struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

type SQL

type SQL struct {
	Host     string `json:"host"`
	Database string `json:"database"`
	User     string `json:"user"`
	Password string `json:"password"`
	Instance string `json:"instance"`
}

type SQLite

type SQLite struct {
	DBPath string `json:"dbpath"`
}

Jump to

Keyboard shortcuts

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