storage

package
v0.113.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NopLogger

type NopLogger struct{}

NopLogger is a logger that does nothing. TODO: Move to log package

func (NopLogger) Print

func (NopLogger) Print(msg string, fields ...field.M)

Print does nothing.

func (NopLogger) PrintTo

func (NopLogger) PrintTo(w io.Writer, msg string, fields ...field.M)

PrintTo does nothing.

func (NopLogger) WithContext

func (NopLogger) WithContext(ctx context.Context) log.Logger

WithContext does nothing.

func (NopLogger) WithError

func (NopLogger) WithError(err error) log.Logger

WithError does nothing.

type StringLogger

type StringLogger []string

StringLogger is a logger that stores log messages in a slice of strings.

func (*StringLogger) MatchString

func (l *StringLogger) MatchString(pattern string) bool

func (*StringLogger) Print

func (l *StringLogger) Print(msg string, fields ...field.M)

func (*StringLogger) PrintTo

func (l *StringLogger) PrintTo(w io.Writer, msg string, fields ...field.M)

func (*StringLogger) WithContext

func (l *StringLogger) WithContext(ctx context.Context) log.Logger

func (*StringLogger) WithError

func (l *StringLogger) WithError(err error) log.Logger

Jump to

Keyboard shortcuts

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