keys

package
v0.0.0-...-fe59bbe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool string

Bool represents a key

func (Bool) From

func (k Bool) From(l event.Label) bool

From can be used to get a value from a Label.

func (Bool) Of

func (k Bool) Of(v bool) event.Label

Of creates a new Label with this key and the supplied value.

type Error

type Error string

Error represents a key

func (Error) From

func (k Error) From(l event.Label) error

From can be used to get a value from a Label.

func (Error) Of

func (k Error) Of(v error) event.Label

Of creates a new Label with this key and the supplied value.

type Float32

type Float32 string

Float32 represents a key

func (Float32) From

func (k Float32) From(l event.Label) float32

From can be used to get a value from a Label.

func (Float32) Of

func (k Float32) Of(v float32) event.Label

Of creates a new Label with this key and the supplied value.

type Float64

type Float64 string

Float64 represents a key

func (Float64) From

func (k Float64) From(l event.Label) float64

From can be used to get a value from a Label.

func (Float64) Of

func (k Float64) Of(v float64) event.Label

Of creates a new Label with this key and the supplied value.

type Int

type Int string

Int represents a key

func (Int) From

func (k Int) From(l event.Label) int

From can be used to get a value from a Label.

func (Int) Of

func (k Int) Of(v int) event.Label

Of creates a new Label with this key and the supplied value.

type Int16

type Int16 string

Int16 represents a key

func (Int16) From

func (k Int16) From(l event.Label) int16

From can be used to get a value from a Label.

func (Int16) Of

func (k Int16) Of(v int16) event.Label

Of creates a new Label with this key and the supplied value.

type Int32

type Int32 string

Int32 represents a key

func (Int32) From

func (k Int32) From(l event.Label) int32

From can be used to get a value from a Label.

func (Int32) Of

func (k Int32) Of(v int32) event.Label

Of creates a new Label with this key and the supplied value.

type Int64

type Int64 string

Int64 represents a key

func (Int64) From

func (k Int64) From(l event.Label) int64

From can be used to get a value from a Label.

func (Int64) Of

func (k Int64) Of(v int64) event.Label

Of creates a new Label with this key and the supplied value.

type Int8

type Int8 string

Int8 represents a key

func (Int8) From

func (k Int8) From(l event.Label) int8

From can be used to get a value from a Label.

func (Int8) Of

func (k Int8) Of(v int8) event.Label

Of creates a new Label with this key and the supplied value.

type String

type String string

String represents a key

func (String) From

func (k String) From(l event.Label) string

From can be used to get a value from a Label.

func (String) Of

func (k String) Of(v string) event.Label

Of creates a new Label with this key and the supplied value.

type Tag

type Tag string

Tag represents a key for tagging labels that have no value. These are used when the existence of the label is the entire information it carries, such as marking events to be of a specific kind, or from a specific package.

func (Tag) New

func (k Tag) New() event.Label

New creates a new Label with this key.

type UInt

type UInt string

UInt represents a key

func (UInt) From

func (k UInt) From(l event.Label) uint

From can be used to get a value from a Label.

func (UInt) Of

func (k UInt) Of(v uint) event.Label

Of creates a new Label with this key and the supplied value.

type UInt16

type UInt16 string

UInt16 represents a key

func (UInt16) From

func (k UInt16) From(l event.Label) uint16

From can be used to get a value from a Label.

func (UInt16) Of

func (k UInt16) Of(v uint16) event.Label

Of creates a new Label with this key and the supplied value.

type UInt32

type UInt32 string

UInt32 represents a key

func (UInt32) From

func (k UInt32) From(l event.Label) uint32

From can be used to get a value from a Label.

func (UInt32) Of

func (k UInt32) Of(v uint32) event.Label

Of creates a new Label with this key and the supplied value.

type UInt64

type UInt64 string

UInt64 represents a key

func (UInt64) From

func (k UInt64) From(l event.Label) uint64

From can be used to get a value from a Label.

func (UInt64) Of

func (k UInt64) Of(v uint64) event.Label

Of creates a new Label with this key and the supplied value.

type UInt8

type UInt8 string

UInt8 represents a key

func (UInt8) From

func (k UInt8) From(l event.Label) uint8

From can be used to get a value from a Label.

func (UInt8) Of

func (k UInt8) Of(v uint8) event.Label

Of creates a new Label with this key and the supplied value.

type Value

type Value string

Value represents a key for untyped values.

func (Value) From

func (k Value) From(l event.Label) interface{}

From can be used to get a value from a Label.

func (Value) Of

func (k Value) Of(v interface{}) event.Label

Of creates a new Label with this key and the supplied value.

Jump to

Keyboard shortcuts

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