Documentation ¶
Overview ¶
Package kv provides a way to work with keys and values. Those let keep the consistency among packages when working with key-value pairs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pair ¶
type Pair struct { Val // contains filtered or unexported fields }
Pair encapsulates a key-value representation. All Val methods can be accessed from a Pair.
func CorrelationID ¶
CorrelationID provides a new Pair that encapsulates a correlation ID.
func NewObfuscated ¶
NewObfuscated generates a new Pair using the given key. The value, however, will be obfuscated. This prevents situations where a value is not supposed to be reported to other components. Only strings are supported at this time.
func ServiceHost ¶
ServiceHost provides a new Pair that encapsulates a service host.
func ServiceName ¶
ServiceName provides a new Pair that encapsulates a service name.
func TriggeredBy ¶
TriggeredBy provides a new Pair that encapsulates a triggered by value.
type Val ¶
type Val struct {
// contains filtered or unexported fields
}
Val encapsulates the given value. Keeping it encapsulated allows to work with obfuscated pairs. A value can also be used on its own.