Documentation ¶
Overview ¶
Package metadata contains functions to set and get metadata from addresses.
This package is experimental.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
Set sets (overrides) the metadata in addr.
When a SubConn is created with this address, the RPCs sent on it will all have this metadata.
func ValidatePair ¶
ValidatePair validate a key-value pair with the following rules (the pseudo-header will be skipped) :
- key must contain one or more characters. - the characters in the key must be contained in [0-9 a-z _ - .]. - if the key ends with a "-bin" suffix, no validation of the corresponding value is performed. - the characters in the every value must be printable (in [%x20-%x7E]).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.