fields

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 1 Imported by: 3

README

fields

Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	Extract(extractor FieldExtractor)
}

type Field

type Field interface {
	Key() string
	Value() fieldValue
}

func Any

func Any(key string, val interface{}) Field

func Bool

func Bool(key string, val bool) Field

func Error

func Error(err error) Field

func Float32

func Float32(key string, val float32) Field

func Float64

func Float64(key string, val float64) Field

func Int

func Int(key string, val int) Field

func Int16

func Int16(key string, val int16) Field

func Int32

func Int32(key string, val int32) Field

func Int64

func Int64(key string, val int64) Field

func Int8

func Int8(key string, val int8) Field

func Str

func Str(key string, val string) Field

func Stringer

func Stringer(key string, val fmt.Stringer) Field

func Strings

func Strings(key string, val []string) Field

func Uint

func Uint(key string, val uint) Field

func Uint16

func Uint16(key string, val uint16) Field

func Uint32

func Uint32(key string, val uint32) Field

func Uint64

func Uint64(key string, val uint64) Field

func Uint8

func Uint8(key string, val uint8) Field

type FieldContainer

type FieldContainer interface {
	Bool(key string, value bool) FieldContainer
	Int(key string, value int) FieldContainer
	Int8(key string, value int8) FieldContainer
	Int16(key string, value int16) FieldContainer
	Int32(key string, value int32) FieldContainer
	Int64(key string, value int64) FieldContainer
	Uint(key string, value uint) FieldContainer
	Uint8(key string, value uint8) FieldContainer
	Uint16(key string, value uint16) FieldContainer
	Uint32(key string, value uint32) FieldContainer
	Uint64(key string, value uint64) FieldContainer
	Float32(key string, value float32) FieldContainer
	Float64(key string, value float64) FieldContainer
	Str(key string, value string) FieldContainer
	Strings(key string, values []string) FieldContainer
	Stringer(key string, value fmt.Stringer) FieldContainer
	Any(key string, value interface{}) FieldContainer
	Extract(out FieldExtractor)
}

type FieldExtractor

type FieldExtractor interface {
	Bool(key string, value bool)
	Int(key string, value int)
	Int8(key string, value int8)
	Int16(key string, value int16)
	Int32(key string, value int32)
	Int64(key string, value int64)
	Uint(key string, value uint)
	Uint8(key string, value uint8)
	Uint16(key string, value uint16)
	Uint32(key string, value uint32)
	Uint64(key string, value uint64)
	Float32(key string, value float32)
	Float64(key string, value float64)
	Str(key string, value string)
	Strings(key string, values []string)
	Any(key string, value interface{})
}

Jump to

Keyboard shortcuts

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