tracing

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageState

type MessageState interface {
	Len() int
	Has(name string) bool
	Del(name string) interface{}
	Set(name string, value interface{}) (old interface{}, err error)
	Value(name string) interface{}
	Visit(visit func(name string, value interface{}))
}

type MessageStateCarrier

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

func NewMessageStateCarrier

func NewMessageStateCarrier(state MessageState) *MessageStateCarrier

func (MessageStateCarrier) Get

func (hc MessageStateCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (MessageStateCarrier) Keys

func (hc MessageStateCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (MessageStateCarrier) Set

func (hc MessageStateCarrier) Set(key string, value string)

Set stores the key-value pair.

Jump to

Keyboard shortcuts

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