adapter

package
v0.0.0-...-727cc0d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogrusLogger

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

LogrusLogger is an adapter for the logrus.Logger.

func NewLogrusLogger

func NewLogrusLogger() *LogrusLogger

func (*LogrusLogger) Debug

func (l *LogrusLogger) Debug(_ context.Context, msg string)

func (*LogrusLogger) Debugf

func (l *LogrusLogger) Debugf(_ context.Context, format string, args ...interface{})

func (*LogrusLogger) Error

func (l *LogrusLogger) Error(_ context.Context, msg string)

func (*LogrusLogger) Errorf

func (l *LogrusLogger) Errorf(_ context.Context, format string, args ...interface{})

func (*LogrusLogger) Info

func (l *LogrusLogger) Info(_ context.Context, msg string)

func (*LogrusLogger) Infof

func (l *LogrusLogger) Infof(_ context.Context, format string, args ...interface{})

func (*LogrusLogger) Warn

func (l *LogrusLogger) Warn(_ context.Context, msg string)

func (*LogrusLogger) Warnf

func (l *LogrusLogger) Warnf(_ context.Context, format string, args ...interface{})

type RestyClient

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

func NewRestyClient

func NewRestyClient() *RestyClient

func (*RestyClient) Do

func (r *RestyClient) Do(req *http.Request) (*http.Response, error)

type SDKTextFormatter

type SDKTextFormatter struct {
	logrus.TextFormatter
	Prefix string
}

func (*SDKTextFormatter) Format

func (f *SDKTextFormatter) Format(entry *logrus.Entry) ([]byte, error)

type ZapLogger

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

ZapLogger is an adapter for the zap.Logger.

func NewZapLogger

func NewZapLogger() *ZapLogger

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(_ context.Context, msg string)

func (*ZapLogger) Debugf

func (z *ZapLogger) Debugf(_ context.Context, format string, args ...interface{})

func (*ZapLogger) Error

func (z *ZapLogger) Error(_ context.Context, msg string)

func (*ZapLogger) Errorf

func (z *ZapLogger) Errorf(_ context.Context, format string, args ...interface{})

func (*ZapLogger) Info

func (z *ZapLogger) Info(_ context.Context, msg string)

func (*ZapLogger) Infof

func (z *ZapLogger) Infof(_ context.Context, format string, args ...interface{})

func (*ZapLogger) Warn

func (z *ZapLogger) Warn(_ context.Context, msg string)

func (*ZapLogger) Warnf

func (z *ZapLogger) Warnf(_ context.Context, format string, args ...interface{})

type ZeroLogger

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

ZeroLogger is an adapter for the zerolog.Logger.

func NewZeroLogger

func NewZeroLogger() *ZeroLogger

func (*ZeroLogger) Debug

func (z *ZeroLogger) Debug(_ context.Context, msg string)

func (*ZeroLogger) Debugf

func (z *ZeroLogger) Debugf(_ context.Context, format string, args ...interface{})

func (*ZeroLogger) Error

func (z *ZeroLogger) Error(_ context.Context, msg string)

func (*ZeroLogger) Errorf

func (z *ZeroLogger) Errorf(_ context.Context, format string, args ...interface{})

func (*ZeroLogger) Info

func (z *ZeroLogger) Info(_ context.Context, msg string)

func (*ZeroLogger) Infof

func (z *ZeroLogger) Infof(_ context.Context, format string, args ...interface{})

func (*ZeroLogger) Warn

func (z *ZeroLogger) Warn(_ context.Context, msg string)

func (*ZeroLogger) Warnf

func (z *ZeroLogger) Warnf(_ context.Context, format string, args ...interface{})

Jump to

Keyboard shortcuts

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