helper

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBreakerHosts added in v0.0.3

func GetBreakerHosts(zkHosts []string) (hosts []string)

func NewLoggerGorm

func NewLoggerGorm(slowThreshold time.Duration) logger.Interface

func StackTrace added in v0.0.2

func StackTrace(deep int) (stack string)

func StackTracePanic added in v0.0.2

func StackTracePanic() (stack string)

Types

type LoggerGorm

type LoggerGorm struct {
	LogLevel logger.LogLevel

	SlowThreshold time.Duration
	// contains filtered or unexported fields
}

func (LoggerGorm) Error

func (l LoggerGorm) Error(_ context.Context, s string, i ...interface{})

func (LoggerGorm) Info

func (l LoggerGorm) Info(_ context.Context, s string, i ...interface{})

func (*LoggerGorm) LogMode

func (l *LoggerGorm) LogMode(level logger.LogLevel) logger.Interface

func (LoggerGorm) Trace

func (l LoggerGorm) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)

func (LoggerGorm) Warn

func (l LoggerGorm) Warn(_ context.Context, s string, i ...interface{})

Jump to

Keyboard shortcuts

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