internal

package
v0.0.0-...-45fead3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithAttributes

func ContextWithAttributes(ctx context.Context) context.Context

Types

type Attribute

type Attribute struct {
	Key   string
	Value string
}

type Attributes

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

func AttributesFromContext

func AttributesFromContext(ctx context.Context) (Attributes, bool)

func NewAttributes

func NewAttributes() Attributes

func (Attributes) Entries

func (a Attributes) Entries() []Attribute

func (Attributes) Get

func (a Attributes) Get(key string) (string, bool)

func (Attributes) Set

func (a Attributes) Set(key string, value string)

Jump to

Keyboard shortcuts

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