conf

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *config

Get returns the config struct.

func Init

func Init()

Types

type Base

type Base struct {
	SystemLanguage   string
	BeginTime        time.Time
	RestTime         [][]time.Time
	EndTime          time.Time
	Duration         uint
	SeparateFrontend bool
	Sentry           bool
	Port             string
	Salt             string
	CheckDownScore   int
	AttackScore      int
}

Base is the basic config of the cardinal.

type MySQL

type MySQL struct {
	DBHost     string
	DBUsername string
	DBPassword string
	DBName     string
}

MySQL is the database config of the cardinal.

Jump to

Keyboard shortcuts

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