redis

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 17 Imported by: 0

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 Construct

func Construct(ctx context.Context, confs map[string]*Conf, opts ...utils.OptionExtender) func()

func Use

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"`
	UnlogableCommands []string `yaml:"unlogable_commands" json:"unlogable_commands" toml:"unlogable_commands" default:"[echo,ping]"`
}

Conf nolint: revive // struct tag too long issue

type Redis

type Redis struct {
	rdsDrv.UniversalClient
	Name string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL