conf

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Init init config

Types

type BM

type BM struct {
	Inner *bm.ServerConfig
	Local *bm.ServerConfig
}

BM http.

type Config

type Config struct {
	Version string `toml:"version"`
	// xlog
	Log *log.Config
	// HTTPServer
	BM *BM
	// tracer
	Tracer *trace.Config
	// oss
	Oss *Oss
	// db
	DB *DB
	// reload time
	Reload      time.Duration
	GitRelation map[string]string
	// identify
	Auth *permit.Config

	// other
	InvalidFrameworkFile []string
	TextSizeLimitList    []TextSizeLimit
	Property             *Property
}

Config struct.

var (
	Conf *Config
)

config init.

type DB

type DB struct {
	Macross *sql.Config
}

DB struct.

type Oss

type Oss struct {
	Endpoint        string
	AccessKeyID     string
	AccessKeySecret string
	Bucket          string
	OriginDir       string
	PublishDir      string
}

Oss struct.

type Property

type Property struct {
	Mail *struct {
		Host    string
		Port    int
		Address string
		Pwd     string
		Name    string
	}

	Package *struct {
		URLPrefix string
		SavePath  string
	}
}

Property struct.

type TextSizeLimit

type TextSizeLimit struct {
	Size  int64
	Limit float64
}

TextSizeLimit struct.

Jump to

Keyboard shortcuts

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