lib

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.4.1"

Variables

View Source
var LogLevels map[string]log.Level = map[string]log.Level{
	"trace": log.TraceLevel,
	"debug": log.DebugLevel,
	"info":  log.InfoLevel,
	"warn":  log.WarnLevel,
	"error": log.ErrorLevel,
	"fatal": log.FatalLevel,
	"panic": log.PanicLevel,
}
View Source
var LogLevelsZap map[string]zapcore.Level = map[string]zapcore.Level{
	"trace": zapcore.DebugLevel,
	"debug": zapcore.DebugLevel,
	"info":  zapcore.InfoLevel,
	"warn":  zapcore.WarnLevel,
	"error": zapcore.ErrorLevel,
	"fatal": zapcore.FatalLevel,
	"panic": zapcore.PanicLevel,
}

This sucks

Functions

func ParseArgs

func ParseArgs(argv []string) map[string]interface{}

Types

type AccessLog2JSON

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

type AccessLog2JSONQuery

type AccessLog2JSONQuery struct {
	AccessLog2JSON
}

func (*AccessLog2JSONQuery) Do

func (t *AccessLog2JSONQuery) Do(s string) (string, error)

type Identity

type Identity struct{}

func (*Identity) Do

func (t *Identity) Do(s string) (string, error)

type Transform

type Transform interface {
	Do(string) (string, error)
}

func NewAccessLog2JSON

func NewAccessLog2JSON(format string) (Transform, error)

func NewIdentity

func NewIdentity() (Transform, error)

Jump to

Keyboard shortcuts

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