Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheExpire ¶
type CacheExpire struct { NullKey string `mapstructure:"null-key" json:"null-key" yaml:"null-key"` // 空值缓存过期时间 UserBaseInfo string `mapstructure:"user-base-info" json:"user-base-info" yaml:"user-base-info"` // 用户基本信息过期时间 VideoBaseInfo string `mapstructure:"video-info" json:"video-info" yaml:"video-info"` // 视频基本信息过期时间 }
func (*CacheExpire) ParseNullKeyExpireDuration ¶
func (c *CacheExpire) ParseNullKeyExpireDuration() time.Duration
func (*CacheExpire) ParseUserBaseInfoExpireDuration ¶
func (c *CacheExpire) ParseUserBaseInfoExpireDuration() time.Duration
func (*CacheExpire) ParseVideoBaseInfoExpireDuration ¶
func (c *CacheExpire) ParseVideoBaseInfoExpireDuration() time.Duration
type ETCD ¶
type FileAccess ¶
type Hertz ¶
type JWT ¶
type JWT struct { SigningKey string `mapstructure:"signing-key" json:"signing-key" yaml:"signing-key"` // jwt签名 ExpiresTime string `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"` // 过期时间 Issuer string `mapstructure:"issuer" json:"issuer" yaml:"issuer"` // 签发者 Subject string `mapstructure:"subject" json:"subject" yaml:"subject"` // 主题 }
type MongoDB ¶
type MongoDB struct { Host string `mapstructure:"host" json:"host" yaml:"host"` Port string `mapstructure:"port" json:"port" yaml:"port"` Username string `mapstructure:"username" json:"username" yaml:"username"` Password string `mapstructure:"password" json:"password" yaml:"password"` Database string `mapstructure:"database" json:"database" yaml:"database"` }
type MySQL ¶
type MySQL struct { Host string `mapstructure:"host" json:"host" yaml:"host"` // 服务器地址 Port string `mapstructure:"port" json:"port" yaml:"port"` // 端口 Config string `mapstructure:"config" json:"config" yaml:"config"` // 高级配置 DBName string `mapstructure:"db-name" json:"db-name" yaml:"db-name"` // 数据库名 Username string `mapstructure:"username" json:"username" yaml:"username"` // 数据库用户名 Password string `mapstructure:"password" json:"password" yaml:"password"` // 数据库密码 }
type RPCClient ¶
type RPCClient struct { UserServiceName string `mapstructure:"user_service_name" yaml:"user_service_name"` PublishServiceName string `mapstructure:"publish_service_name" yaml:"publish_service_name"` FeedServiceName string `mapstructure:"feed_service_name" yaml:"feed_service_name"` FavoriteServiceName string `mapstructure:"favorite_service_name" yaml:"favorite_service_name"` CommentServiceName string `mapstructure:"comment_service_name" yaml:"comment_service_name"` RelationServiceName string `mapstructure:"relation_service_name" yaml:"relation_service_name"` MessageServiceName string `mapstructure:"message_service_name" yaml:"message_service_name"` }
type RPCServer ¶
type Redis ¶
type StaticResource ¶
Click to show internal directories.
Click to hide internal directories.