Discover Packages
gitee.com/Ljolan/si-mqtt
config
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Sep 13, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Auth struct {
Allows []string `toml:"allows"`
}
type Broker struct {
TcpAddr string `toml:"tcpAddr"`
TcpTLSOpen bool `toml:"tcpTlsOpen"`
WsAddr string `toml:"wsAddr"`
WsPath string `toml:"wsPath"`
WssAddr string `toml:"wssAddr"`
WssCertPath string `toml:"wssCertPath"`
WssKeyPath string `toml:"wssKeyPath"`
Ca string `toml:"ca"`
}
type Cluster struct {
Enabled bool `toml:"enabled"`
TaskClusterPoolSize int32 `toml:"taskClusterPoolSize"`
TaskServicePoolSize int32 `toml:"taskServicePoolSize"`
ClusterName string `toml:"clusterName"`
ClusterHost string `toml:"clusterHost"`
ClusterPort int `toml:"clusterPort"`
ClusterTLS bool `toml:"clusterTls"`
ServerCertFile string `toml:"serverCertFile"`
ServerKeyFile string `toml:"serverKeyFile"`
ClientCertFile string `toml:"clientCertFile"`
ClientKeyFile string `toml:"clientKeyFile"`
StaticNodeList []NodeInfo `toml:"staticNodeList"`
}
type Connect struct {
Keepalive int `toml:"keepalive"`
WriteTimeout int `toml:"writeTimeout"`
ConnectTimeout int `toml:"connectTimeout"`
AckTimeout int `toml:"ackTimeout"`
TimeoutRetries int `toml:"timeOutRetries"`
}
type DefaultConfig struct {
Connect Connect `toml:"connect"`
Provider Provider `toml:"provider"`
Auth Auth `toml:"auth"`
Server Server `toml:"server"`
}
type Log struct {
Level string `toml:"level"`
}
type Mysql struct {
Source string `toml:"source"`
PoolSize int `toml:"poolSize"`
}
type NodeInfo struct {
Name string `toml:"name"`
Addr string `toml:"addr"`
}
type PProf struct {
Open bool `toml:"open"`
Port int64 `toml:"port"`
}
type Provider struct {
SessionsProvider string `toml:"sessionsProvider"`
TopicsProvider string `toml:"topicsProvider"`
Authenticator string `toml:"authenticator"`
}
type Redis struct {
Source string `toml:"source"`
Db int `toml:"db"`
PoolSize int `toml:"poolSize"`
}
type SIConfig struct {
ServerVersion string `toml:"serverVersion"`
Log Log `toml:"log"`
Broker Broker `toml:"broker"`
Cluster Cluster `toml:"cluster"`
DefaultConfig DefaultConfig `toml:"defaultConfig"`
Store Store `toml:"store"`
PProf PProf `toml:"pprof"`
}
type Server struct {
Redirects []string `tome:"redirects"`
RedirectOpen bool `tome:"redirectOpen"`
RedirectIsForEver bool `tome:"redirectIsForEver"`
}
type Store struct {
Mysql Mysql `toml:"mysql"`
Redis Redis `toml:"redis"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.