logger

package
v0.0.0-...-071f0a0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	// UnmarshalKey takes a single key and unmarshal it into a Struct.
	UnmarshalKey(name string, out any) error
	// Has checks if config section exists.
	Has(name string) bool
}

type Loggable

type Loggable struct{}

func (*Loggable) MarshalLogObject

func (l *Loggable) MarshalLogObject(encoder zapcore.ObjectEncoder) error

type Logger

type Logger interface {
	NamedLogger(name string) *zap.Logger
}

type TestPlugin

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

func (*TestPlugin) Init

func (p1 *TestPlugin) Init(cfg Configurer, log Logger) error

func (*TestPlugin) Name

func (p1 *TestPlugin) Name() string

func (*TestPlugin) Serve

func (p1 *TestPlugin) Serve() chan error

func (*TestPlugin) Stop

func (p1 *TestPlugin) Stop(context.Context) error

Jump to

Keyboard shortcuts

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