local

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultContextProvider

func NewDefaultContextProvider(ID string) interface{}

func NewDefaultErrorReporter

func NewDefaultErrorReporter(ID string) interface{}

func NewDefaultLogger

func NewDefaultLogger(ID string) interface{}

Types

type DefaultContext

type DefaultContext struct {
}

func (*DefaultContext) NewHttpContext

func (c *DefaultContext) NewHttpContext(req *http.Request) context.Context

type ErrorReporter

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

func (*ErrorReporter) ReportError

func (er *ErrorReporter) ReportError(e error)

type Logger

type Logger struct {
	Lvl Severity
	// contains filtered or unexported fields
}

func (*Logger) Log

func (l *Logger) Log(msg string, keyValuePairs ...interface{})

type Severity

type Severity int
const (
	Info Severity = iota
	Warn
	Error
	Debug
)

Jump to

Keyboard shortcuts

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