config

package
v0.0.0-...-838931a Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M struct {
	Server struct {
		Port                 int    `toml:"port"`
		RootPath             string `toml:"rootPath"`
		ReqLimit             int    `toml:"reqLimit"`
		AccessTokenValidHour int    `toml:"accessTokenValidHour"`
		TimeTokenValidMinute int    `toml:"timeTokenValidMinute"`
		Domain               string `toml:"domain"`
		AdminLoginValidHour  int    `toml:"adminLoginValidHour"`
	} `toml:"server"`
	Log struct {
		Level      string `toml:"level"`
		RootPath   string `toml:"rootPath"`
		AppFile    string `toml:"appFile"`
		HttpFile   string `toml:"httpFile"`
		MaxSize    int    `toml:"maxSize"`
		MaxBackups int    `toml:"maxBackups"`
		MaxAge     int    `toml:"maxAge"`
		Compress   bool   `toml:"compress"`
	} `toml:"log"`
	Store struct {
		MainStore           string `toml:"mainStore"`
		BackupStore         string `toml:"backupStore"`
		RootPath            string `toml:"rootPath"`
		IsEnableLocal       bool   `toml:"isEnableLocal"`
		IsEnableMemory      bool   `toml:"isEnableMemory"`
		CycleBakToLocalHour int    `toml:"cycleBakToLocalHour"`
	} `toml:"store"`
	MySQL struct {
		Address         string `toml:"address"`
		UserName        string `toml:"userName"`
		Password        string `toml:"password@cipher"`
		DbName          string `toml:"dbName"`
		ConnMaxLifeTime int    `toml:"connMaxLifeTime"`
		MaxIdleConn     int    `toml:"maxIdleConn"`
		MaxOpenConn     int    `toml:"maxOpenConn"`
		ConnMaxWaitTime string `toml:"connMaxWaitTime"`
	} `toml:"mysql"`
	PgSQL struct {
		Host     string `toml:"host"`
		Port     string `toml:"port"`
		UserName string `toml:"userName"`
		Password string `toml:"password@cipher"`
		DbName   string `toml:"dbName"`
	} `toml:"pgsql"`
}

type NacosM

type NacosM struct {
	Client struct {
		NamespaceId string `toml:"namespaceId"`
		DataId      string `toml:"dataId"`
		Group       string `toml:"group"`
		TimeoutMs   uint64 `toml:"timeoutMs"`
		LogDir      string `toml:"logDir"`
		CacheDir    string `toml:"cacheDir"`
		LogLevel    string `toml:"logLevel"`
	} `toml:"client"`
	ServerArr []*NacosServer `toml:"server"`
}

type NacosServer

type NacosServer struct {
	Ip          string `toml:"ip"`
	Port        uint64 `toml:"port"`
	ContextPath string `toml:"contextPath"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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