Documentation
¶
Index ¶
- Constants
- type Config
- func (c *Config) APIAddr() string
- func (c *Config) APIPort() int
- func (c *Config) DefaultEffect() resource.Effect
- func (c *Config) DefaultOrganization() string
- func (c *Config) DefaultPageSize() int64
- func (c *Config) DefaultTokenExpiration() time.Duration
- func (c *Config) DefaultUserName() string
- func (c *Config) GeTuiConfig() map[string]string
- func (c *Config) InfluxDBConfig() map[string]string
- func (c *Config) InversePort() int
- func (c *Config) JwtTokenKey() []byte
- func (c *Config) Load() error
- func (c *Config) LogFileName() string
- func (c *Config) LogLevel() string
- func (c *Config) RegCode() string
- func (c *Config) RegOwner() string
- func (c *Config) Save() error
- func (c *Config) SaveStreamURLs(streams interface{}) error
- func (c *Config) SaveWebViewUrls(urls interface{}) error
- func (c *Config) SetLogLevel(level string)
- func (c *Config) StreamURLs() interface{}
- func (c *Config) SysTitle() string
- func (c *Config) WebViewUrls() interface{}
Constants ¶
View Source
const ( SysRegCodePath = "sys.reg.code" SysRegOwnerPath = "sys.reg.owner" SysTitlePath = "sys.title" ApiAddrPath = "api.addr" ApiPortPath = "api.port" InversePortPath = "inverse.port" DefaultUserNamePath = "default.username" DefaultOrganizationPath = "default.organization" DefaultEffectPath = "default.effect" DefaultPageSizePath = "default.pagesize" DefaultTokenExpirationPath = "default.token.expiration" LogLevelPath = "log.level" LogFileNamePath = "log.filename" StreamURLsPath = "stream.urls" WebViewURLsPath = "web.urls" GeTuiAppIDPath = "getui.app.id" GeTuiAppKeyPath = "getui.app.key" GeTuiAppSecretPath = "getui.app.secret" GeTuiMasterSecretPath = "getui.master.secret" InfluxDBUrl = "influxdb.url" InfluxDBUserName = "influxdb.username" InfluxDBPassword = "influxdb.password" )
View Source
const ( GeTuiAppIDEnvStr = "GETUI_APP_ID" GeTuiAppKeyEnvStr = "GETUI_APP_KEY" GeTuiAppSecretEnvStr = "GETUI_APP_SECRET" GeTuiMasterSecretEnvStr = "GETUI_MASTER_SECRET" )
View Source
const ( DefaultApiPort = 9090 DefaultInversePort = 10502 DefaultOrganization = "default" DefaultUserName = "admin" DefaultPageSize = 20 DefaultTokenExpiration = 3600 // second DefaultLogLevel = "info" DefaultLogFileName = "./log.data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BaseConfig model.Config ExtraConfig model.Config Status sync.Map // contains filtered or unexported fields }
func (*Config) DefaultEffect ¶
func (*Config) DefaultOrganization ¶
func (*Config) DefaultPageSize ¶
func (*Config) DefaultTokenExpiration ¶
func (*Config) DefaultUserName ¶
func (*Config) GeTuiConfig ¶
func (*Config) InfluxDBConfig ¶
func (*Config) InversePort ¶
func (*Config) JwtTokenKey ¶
func (*Config) LogFileName ¶
func (*Config) SaveStreamURLs ¶
func (*Config) SaveWebViewUrls ¶
func (*Config) SetLogLevel ¶
func (*Config) StreamURLs ¶
func (c *Config) StreamURLs() interface{}
func (*Config) WebViewUrls ¶
func (c *Config) WebViewUrls() interface{}
Click to show internal directories.
Click to hide internal directories.