helpers

package
v0.0.0-...-cb424ea Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedLevels

func SupportedLevels() []string

Types

type ErrorObj

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

func Error

func Error(e error) *ErrorObj

func (*ErrorObj) Key

func (s *ErrorObj) Key() string

Key

func (*ErrorObj) Value

func (s *ErrorObj) Value() interface{}

Value

type IDetails

type IDetails interface {
	Key() string
	Value() interface{}
}

type IntObj

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

func Int

func Int(k string, v int) *IntObj

func (*IntObj) Key

func (s *IntObj) Key() string

Key

func (*IntObj) Value

func (s *IntObj) Value() interface{}

Value

type InterfaceObj

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

func Interface

func Interface(k string, v interface{}) *InterfaceObj

func (*InterfaceObj) Key

func (s *InterfaceObj) Key() string

Key

func (*InterfaceObj) Value

func (s *InterfaceObj) Value() interface{}

Value

type Level

type Level int8
const (
	UnknownLevel Level = iota - -1
	DebugLevel
	InfoLevel //default
	SuccessLevel
	WarningLevel
	ErrorLevel
	FatalLevel
)

func ToLevel

func ToLevel(level string) Level

func (Level) Skip

func (l Level) Skip(l2 Level) bool

func (Level) String

func (l Level) String() string

type StringObj

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

func String

func String(k, v string) *StringObj

func Time

func Time() *StringObj

func (*StringObj) Key

func (s *StringObj) Key() string

Key

func (*StringObj) Value

func (s *StringObj) Value() interface{}

Value

Jump to

Keyboard shortcuts

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