Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
Types ¶
type API ¶
type API struct { Secret string `mapstructure:"secret"` Expire int `mapstructure:"expire"` Api struct { ListenIP string `mapstructure:"listenIP"` Ports []int `mapstructure:"ports"` } `mapstructure:"api"` Prometheus struct { Enable bool `mapstructure:"enable"` Ports []int `mapstructure:"ports"` GrafanaURL string `mapstructure:"grafanaURL"` } `mapstructure:"prometheus"` }
type Log ¶
type Log struct { StorageLocation string `mapstructure:"storageLocation"` RotationTime uint `mapstructure:"rotationTime"` RemainRotationCount uint `mapstructure:"remainRotationCount"` RemainLogLevel int `mapstructure:"remainLogLevel"` IsStdout bool `mapstructure:"isStdout"` IsJson bool `mapstructure:"isJson"` IsSimplify bool `mapstructure:"isSimplify"` WithStack bool `mapstructure:"withStack"` }
type Meeting ¶
type Meeting struct { RPC struct { RegisterIP string `mapstructure:"registerIP"` ListenIP string `mapstructure:"listenIP"` Ports []int `mapstructure:"ports"` } `mapstructure:"rpc"` Prometheus Prometheus `mapstructure:"prometheus"` }
type Mongo ¶
type Mongo struct { URI string `mapstructure:"uri"` Address []string `mapstructure:"address"` Database string `mapstructure:"database"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` MaxPoolSize int `mapstructure:"maxPoolSize"` MaxRetry int `mapstructure:"maxRetry"` }
type Prometheus ¶
type Redis ¶
type Redis struct { Address []string `mapstructure:"address"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` EnablePipeline bool `mapstructure:"enablePipeline"` ClusterMode bool `mapstructure:"clusterMode"` DB int `mapstructure:"storage"` MaxRetry int `mapstructure:"MaxRetry"` }
type RpcRegisterName ¶
type User ¶
type User struct { RPC struct { RegisterIP string `mapstructure:"registerIP"` ListenIP string `mapstructure:"listenIP"` Ports []int `mapstructure:"ports"` } `mapstructure:"rpc"` Token struct { Secret string `mapstructure:"secret"` Expires int `mapstructure:"expire"` } `mapstructure:"token"` Prometheus Prometheus `mapstructure:"prometheus"` }
Click to show internal directories.
Click to hide internal directories.