common

package
v0.0.0-...-2eb6bad Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(name string) *Logger

func (Logger) Debugf

func (logger Logger) Debugf(f string, v ...interface{})

func (Logger) Errorf

func (logger Logger) Errorf(f string, v ...interface{})

func (Logger) Warnf

func (logger Logger) Warnf(f string, v ...interface{})

type ResponseError

type ResponseError struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Errors  []string    `json:"errors"`
	URL     string      `json:"url"`
	Method  string      `json:"method"`
	ReqBody interface{} `json:"req_body"`
}

func (ResponseError) Error

func (e ResponseError) Error() string

func (ResponseError) GetErrors

func (e ResponseError) GetErrors() []string

func (ResponseError) GetMessage

func (e ResponseError) GetMessage() string

func (ResponseError) GetStatus

func (e ResponseError) GetStatus() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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