Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseConfig ¶
func GetBaseConfig(c framework.Container) *contract.RedisConfig
GetBaseConfig 读取database.yaml根目录结构
func NewPBRedis ¶
func NewPBRedis(params ...interface{}) (interface{}, error)
func WithConfigPath ¶
func WithConfigPath(configPath string) contract.RedisOption
WithConfigPath 加载配置文件地址
func WithRedisConfig ¶
func WithRedisConfig(f func(options *contract.RedisConfig)) contract.RedisOption
WithRedisConfig 表示自行配置redis的配置信息
Types ¶
type RedisProvider ¶
type RedisProvider struct {
}
func (*RedisProvider) IsDefer ¶
func (pb *RedisProvider) IsDefer() bool
func (*RedisProvider) Name ¶
func (pb *RedisProvider) Name() string
func (*RedisProvider) Params ¶
func (pb *RedisProvider) Params(c framework.Container) []interface{}
func (*RedisProvider) Register ¶
func (pb *RedisProvider) Register(c framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.