package
1.10.20
Repository: https://github.com/code-payments/code-server.git
Documentation: pkg.go.dev

# Functions

AreHeadersInitialized determines whether headers have been initialized for the provided context.
ContextWithHeaders creates a new context with predefined headerPrefixes.
DefaultHeaderSetter returns a HeaderSetter using the SetHeader and the namedProto passed in as the Data.
GetAnyBinaryHeader will try to find the header by checking all the binary headers, in the following order.
GetAnyBinaryHeaderByName will try to find the header by checking all the binary headers, in the following order.
GetStringHeaderByName takes the inbound header and returns the data, if it is a string.
GetHeader takes the inbound header and unmarshal the data into the destination message.
GetHeaderByName takes the inbound header and unmarshal the data into the destination messaging.
GetPropagatingHeader takes the propagating header and unmarshal the data into the destination message.
GetRootHeader takes the root header and unmarshal the data into the destination message.
GetRootHeaderByName takes the root header and unmarshal the data into the destination message.
GetStringHeaderByName takes the inbound header and returns the data, if it is a string.
PropagatingHeaderSetter returns a HeaderSetter using SetPropagatingHeader and the namedProto passed in as the Data.
SetASCIIHeader sets an ASCII header in the given context.
SetHeader sets the outbound header in the given context.
SetHeaderByName sets the outbound header in the given context.
SetPropagatingHeader sets the propagating header in the given context.
StreamClientInterceptor sends all the headers in the current context to a server stream.
StreamServerInterceptor returns a grpc.StreamServerInterceptor that takes all the appropriate headerPrefixes from the metadata and puts it into the context of the streamWrapper.
UnaryClientInterceptor sends all the headers in the current context to server.
UnaryServerInterceptor returns a grpc.UnaryServerInterceptor that takes all the appropriate headerPrefixes from the metadata and puts it into the context.

# Constants

ASCII headers are similar to Inbound headers, except the header is pure text and not an encoded protobuf.
Inbound headers are received from the previous service call, and will not be sent to future service calls.
Outbound headers are only sent on the next service call.
Propagating headers can be created by anyone, and will be passed on to all future service calls.
Root headers are created from edge layers, and will be passed on to all future service calls.

# Structs

HeaderSetter a pair of a headerSetterFunc and the proto header to set.

# Type aliases

HeaderKey is the key to store all the header information in the context.
Headers a custom map that takes a string as a key and either a string or []byte as its value.
Type represents the header type.