wrappers

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActiveFailoverWrapper added in v1.4.1

func NewActiveFailoverWrapper(t testEnv, conn driver.Connection) driver.Connection

NewActiveFailoverWrapper is meant for use by tests generated by 'go test' to cover AF failing cases. It wraps the given connection and retries requests that fail with an error indicating that there is no leader.

func NewLoggerConnection

func NewLoggerConnection(c driver.Connection, l Logger, truncate bool) driver.Connection

Types

type Event

type Event interface {
	Int(key string, value int) Event
	Str(key, value string) Event
	Time(key string, value time.Time) Event
	Duration(key string, value time.Duration) Event
	Interface(key string, value interface{}) Event

	Msgf(format string, args ...interface{})
}

type ID

type ID string

func NewID

func NewID() ID

func (ID) String

func (i ID) String() string

type Logger

type Logger interface {
	Log() Event
}

func NewZeroLogLogger

func NewZeroLogLogger(l zerolog.Logger) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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