package
0.0.0-20200807125606-b3493662e4bf
Repository: https://github.com/thethingsnetwork/go-utils.git
Documentation: pkg.go.dev
# Functions
IDFromIncomingContext gets the key from the incoming context or returns ErrNoID.
IDFromMetadata gets the key from the metadata or returns ErrNoID.
KeyFromIncomingContext gets the key from the incoming context or returns ErrNoKey.
KeyFromMetadata gets the key from the metadata or returns ErrNoKey.
LimitAndOffsetFromIncomingContext gets the limit and offset from the incoming context.
LimitFromMetadata gets the limit from the metadata.
MetadataFromIncomingContext gets the metadata from the given context.
MetadataFromOutgoingContext gets the metadata from the given context.
OffsetFromMetadata gets the offset from the metadata.
OutgoingContextWithID returns an outgoing context with the id.
OutgoingContextWithKey returns an outgoing context with the key.
OutgoingContextWithLimitAndOffset returns an outgoing context with the limit and offset.
OutgoingContextWithServiceInfo returns an outgoing context with the id.
OutgoingContextWithToken returns an outgoing context with the token.
ServiceInfoFromIncomingContext gets the service information from the incoming context or returns empty strings.
ServiceInfoFromMetadata gets the service information from the metadata or returns empty strings.
TokenFromIncomingContext gets the token from the incoming context or returns ErrNoToken.
TokenFromMetadata gets the token from the metadata or returns ErrNoToken.
# Variables
Errors that are returned when an item could not be retrieved TODO: use go-utils/errors when ready.
Errors that are returned when an item could not be retrieved TODO: use go-utils/errors when ready.
Errors that are returned when an item could not be retrieved TODO: use go-utils/errors when ready.