helper

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBreakerHosts

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

func StackTrace

func StackTrace(deep int) (stack string)

func StackTracePanic

func StackTracePanic() (stack string)

Types

type LoggerGorm

type LoggerGorm struct {
	LogLevel logger.LogLevel

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

func NewLoggerGorm

func NewLoggerGorm(slowThreshold time.Duration) *LoggerGorm

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