mock

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory added in v1.14.0

func Factory() *factory

func NewTestLog added in v1.12.0

func NewTestLog() log.Log

Types

type TestLog added in v1.12.0

type TestLog struct {
	*TestLogWriter
}

func (*TestLog) Channel added in v1.14.0

func (r *TestLog) Channel(channel string) log.Writer

func (*TestLog) Stack added in v1.14.0

func (r *TestLog) Stack(channels []string) log.Writer

func (*TestLog) WithContext added in v1.13.5

func (r *TestLog) WithContext(ctx context.Context) log.Writer

type TestLogWriter added in v1.13.5

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

func NewTestLogWriter added in v1.13.5

func NewTestLogWriter() *TestLogWriter

func (*TestLogWriter) Code added in v1.13.5

func (r *TestLogWriter) Code(code string) log.Writer

func (*TestLogWriter) Debug added in v1.13.5

func (r *TestLogWriter) Debug(args ...any)

func (*TestLogWriter) Debugf added in v1.13.5

func (r *TestLogWriter) Debugf(format string, args ...any)

func (*TestLogWriter) Error added in v1.13.5

func (r *TestLogWriter) Error(args ...any)

func (*TestLogWriter) Errorf added in v1.13.5

func (r *TestLogWriter) Errorf(format string, args ...any)

func (*TestLogWriter) Fatal added in v1.13.5

func (r *TestLogWriter) Fatal(args ...any)

func (*TestLogWriter) Fatalf added in v1.13.5

func (r *TestLogWriter) Fatalf(format string, args ...any)

func (*TestLogWriter) Hint added in v1.13.5

func (r *TestLogWriter) Hint(hint string) log.Writer

func (*TestLogWriter) In added in v1.13.5

func (r *TestLogWriter) In(domain string) log.Writer

func (*TestLogWriter) Info added in v1.13.5

func (r *TestLogWriter) Info(args ...any)

func (*TestLogWriter) Infof added in v1.13.5

func (r *TestLogWriter) Infof(format string, args ...any)

func (*TestLogWriter) Owner added in v1.13.5

func (r *TestLogWriter) Owner(owner any) log.Writer

func (*TestLogWriter) Panic added in v1.13.5

func (r *TestLogWriter) Panic(args ...any)

func (*TestLogWriter) Panicf added in v1.13.5

func (r *TestLogWriter) Panicf(format string, args ...any)

func (*TestLogWriter) Request added in v1.13.5

func (r *TestLogWriter) Request(req http.ContextRequest) log.Writer

func (*TestLogWriter) Response added in v1.13.5

func (r *TestLogWriter) Response(res http.ContextResponse) log.Writer

func (*TestLogWriter) Tags added in v1.13.5

func (r *TestLogWriter) Tags(tags ...string) log.Writer

func (*TestLogWriter) User added in v1.13.5

func (r *TestLogWriter) User(user any) log.Writer

func (*TestLogWriter) Warning added in v1.13.5

func (r *TestLogWriter) Warning(args ...any)

func (*TestLogWriter) Warningf added in v1.13.5

func (r *TestLogWriter) Warningf(format string, args ...any)

func (*TestLogWriter) With added in v1.13.5

func (r *TestLogWriter) With(data map[string]any) log.Writer

func (*TestLogWriter) WithTrace added in v1.14.0

func (r *TestLogWriter) WithTrace() log.Writer

Jump to

Keyboard shortcuts

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