Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrDuplicatedName utils.Error = "duplicated redis name"
)
Variables ¶
This section is empty.
Functions ¶
func AppName ¶
func AppName(name string) utils.OptionFunc[useOption]
func Use ¶
func Use(ctx context.Context, name string, opts ...utils.OptionExtender) rdsDrv.UniversalClient
Types ¶
type Conf ¶
type Conf struct {
redis.Option `yaml:",inline" json:",inline" toml:",inline"`
Hooks []string `yaml:"hooks" json:"hooks" toml:"hooks" default:"[github.com/wfusion/gofusion/log/customlogger.redisLogger]"`
EnableLogger bool `yaml:"enable_logger" json:"enable_logger" toml:"enable_logger"`
LogInstance string `yaml:"log_instance" json:"log_instance" toml:"log_instance" default:"default"`
UnloggableCommands []string `yaml:"unloggable_commands" json:"unloggable_commands" toml:"unloggable_commands" default:"[echo,ping]"`
}
Conf nolint: revive // struct tag too long issue
type Redis ¶
type Redis struct {
rdsDrv.UniversalClient
Name string
}
Click to show internal directories.
Click to hide internal directories.