mock

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory() *factory

func NewTestLog

func NewTestLog() log.Log

Types

type TestLog

type TestLog struct {
	*TestLogWriter
}

func (*TestLog) Channel

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

func (*TestLog) Stack

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

func (*TestLog) WithContext

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

type TestLogWriter

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

func NewTestLogWriter

func NewTestLogWriter() *TestLogWriter

func (*TestLogWriter) Code

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

func (*TestLogWriter) Debug

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

func (*TestLogWriter) Debugf

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

func (*TestLogWriter) Error

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

func (*TestLogWriter) Errorf

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

func (*TestLogWriter) Fatal

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

func (*TestLogWriter) Fatalf

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

func (*TestLogWriter) Hint

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

func (*TestLogWriter) In

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

func (*TestLogWriter) Info

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

func (*TestLogWriter) Infof

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

func (*TestLogWriter) Owner

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

func (*TestLogWriter) Panic

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

func (*TestLogWriter) Panicf

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

func (*TestLogWriter) Request

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

func (*TestLogWriter) Response

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

func (*TestLogWriter) Tags

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

func (*TestLogWriter) User

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

func (*TestLogWriter) Warning

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

func (*TestLogWriter) Warningf

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

func (*TestLogWriter) With

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

func (*TestLogWriter) WithTrace

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

Jump to

Keyboard shortcuts

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