internal

package
v0.0.0-...-aa8f128 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeserializerError

func NewDeserializerError(function string, message []byte, err error) error

func NewResponseError

func NewResponseError(code int, message string, stackTrace string, exceptions []string) error

Types

type DefaultLogger

type DefaultLogger struct {
	*zap.Logger
}

func NewDefaultLogger

func NewDefaultLogger(zapLogger *zap.Logger) *DefaultLogger

func (*DefaultLogger) Debug

func (l *DefaultLogger) Debug(msg string, fields ...interface{})

func (*DefaultLogger) Error

func (l *DefaultLogger) Error(msg string, fields ...interface{})

func (*DefaultLogger) Info

func (l *DefaultLogger) Info(msg string, fields ...interface{})

func (*DefaultLogger) Warn

func (l *DefaultLogger) Warn(msg string, fields ...interface{})

func (*DefaultLogger) WithContext

func (l *DefaultLogger) WithContext(ctx context.Context) ILogger

type DeserializerError

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

func (*DeserializerError) Error

func (d *DeserializerError) Error() string

type ILogger

type ILogger interface {
	Info(msg string, fields ...interface{})
	Error(msg string, fields ...interface{})
	Warn(msg string, fields ...interface{})
	Debug(msg string, fields ...interface{})
	WithContext(ctx context.Context) ILogger
}
var Logger ILogger = NewDefaultLogger(nil)

type ResponseError

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

func (*ResponseError) Error

func (r *ResponseError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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