Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var (
RDB redis.UniversalClient
)
Functions ¶
Types ¶
type ClusterConfig ¶
type Config ¶
type Config struct { Server struct { Port int `yaml:"port"` Cors struct { AllowedOrigins []string `yaml:"allowed_origins"` AllowedMethods []string `yaml:"allowed_methods"` AllowedHeaders []string `yaml:"allowed_headers"` } `yaml:"cors"` } `yaml:"server"` Database struct { Driver string `yaml:"driver"` Host string `yaml:"host"` Port int `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` DBName string `yaml:"dbname"` Params string `yaml:"params"` } `yaml:"database"` Redis struct { Mode string `yaml:"mode"` Single SingleConfig `yaml:"single"` Cluster ClusterConfig `yaml:"cluster"` } `yaml:"redis"` // contains filtered or unexported fields }
type RedisConfig ¶
type RedisConfig struct { Mode string `yaml:"mode"` Single SingleConfig `yaml:"single"` Cluster ClusterConfig `yaml:"cluster"` }
Click to show internal directories.
Click to hide internal directories.