adapter

package
v4.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormLoggerWithSlowLog

func GormLoggerWithSlowLog(enabled bool, slowThreshold time.Duration) func(*gormLoggerAdapter)

GormLoggerWithSlowLog slow log switch.

func NewEmptyLogger

func NewEmptyLogger() contracts.LoggerInterface

NewEmptyLogger return contracts.LoggerInterface

func NewGoCacheAdapter

func NewGoCacheAdapter(c *cache.Cache) contracts.Store

NewGoCacheAdapter return Store instance.

func NewGormLoggerAdapter

func NewGormLoggerAdapter(opts ...GormLoggerOption) logger.Interface

NewGormLoggerAdapter return logger.Interface.

func NewLogrusLogger

NewLogrusLogger return contracts.LoggerInterface

func NewRobfigCronV3Runner

func NewRobfigCronV3Runner() contracts.CronRunner

NewRobfigCronV3Runner return contracts.CronRunner

func NewZapLogger

NewZapLogger impl contracts.LoggerInterface.

Types

type GormLoggerOption

type GormLoggerOption func(*gormLoggerAdapter)

type NsqLoggerAdapter

type NsqLoggerAdapter struct{}

func (*NsqLoggerAdapter) Output

func (*NsqLoggerAdapter) Output(calldepth int, s string) error

Output impl nsq.logger

Jump to

Keyboard shortcuts

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