initialize

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config        *_config
	Cache         util.Cache
	Db            *gorm.DB
	Nats          *nats.Conn
	Scheduler     *gocron.Scheduler
	RequestLogger *zap.Logger
	ErrorLogger   *zap.Logger
	PanicLogger   *zap.Logger
)
View Source
var Rdb, LockRdb *redis.Client

Functions

This section is empty.

Types

type RedisHook

type RedisHook struct {
	// contains filtered or unexported fields
}

func (RedisHook) AfterProcess

func (rh RedisHook) AfterProcess(_ context.Context, cmd redis.Cmder) error

func (RedisHook) AfterProcessPipeline

func (rh RedisHook) AfterProcessPipeline(_ context.Context, cmds []redis.Cmder) error

func (RedisHook) BeforeProcess

func (rh RedisHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)

func (RedisHook) BeforeProcessPipeline

func (rh RedisHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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