ymirstubs

package
v0.0.0-...-2175bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSqlxDB

func BuildSqlxDB() *sqlx.DB

func BuildZerologLogger

func BuildZerologLogger(buffer *bytes.Buffer) zerolog.Logger

func ExtractLogsToMap

func ExtractLogsToMap(b *bytes.Buffer, filters ...filterOpt) (m []map[string]interface{})

func IgnoreFieldFilter

func IgnoreFieldFilter(f string) filterOpt

Types

type Fmt

type Fmt struct {
	InfolnCalls [][]interface{}
	InfofCalls  []PrintFCall
	InfoCalls   [][]interface{}

	WarnlnCalls [][]interface{}
	WarnfCalls  []PrintFCall
	WarnCalls   [][]interface{}

	SuccesslnCalls [][]interface{}
	SuccessfCalls  []PrintFCall
	SuccessCalls   [][]interface{}

	ErrorlnCalls [][]interface{}
	ErrorfCalls  []PrintFCall
	ErrorCalls   [][]interface{}
}

func BuildFmtStub

func BuildFmtStub() *Fmt

func (*Fmt) Error

func (f *Fmt) Error(a ...interface{}) (int, error)

func (*Fmt) Errorf

func (f *Fmt) Errorf(format string, a ...interface{}) (int, error)

func (*Fmt) Errorln

func (f *Fmt) Errorln(a ...interface{}) (int, error)

func (*Fmt) Info

func (f *Fmt) Info(a ...interface{}) (int, error)

func (*Fmt) Infof

func (f *Fmt) Infof(format string, a ...interface{}) (int, error)

func (*Fmt) Infoln

func (f *Fmt) Infoln(a ...interface{}) (int, error)

func (*Fmt) Success

func (f *Fmt) Success(a ...interface{}) (int, error)

func (*Fmt) Successf

func (f *Fmt) Successf(format string, a ...interface{}) (int, error)

func (*Fmt) Successln

func (f *Fmt) Successln(a ...interface{}) (int, error)

func (*Fmt) Warn

func (f *Fmt) Warn(a ...interface{}) (int, error)

func (*Fmt) Warnf

func (f *Fmt) Warnf(format string, a ...interface{}) (int, error)

func (*Fmt) Warnln

func (f *Fmt) Warnln(a ...interface{}) (int, error)

type PrintFCall

type PrintFCall struct {
	Format string
	Args   []interface{}
}

Jump to

Keyboard shortcuts

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