Documentation ¶
Index ¶
- Constants
- func GetValues(ctx context.Context, headerNames ...string) []string
- func Propagate(ctx context.Context) context.Context
- func SetCLIVersions(ctx context.Context) context.Context
- func SetVersions(ctx context.Context) context.Context
- func SetVersionsForTests(ctx context.Context, ...) context.Context
Constants ¶
View Source
const ( ClientNameHeaderName = "client-name" ClientVersionHeaderName = "client-version" SupportedServerVersionsHeaderName = "supported-server-versions" SupportedFeaturesHeaderName = "supported-features" SupportedFeaturesHeaderDelim = "," )
View Source
const ( ClientNameCLI = "temporal-cli" CLIVersion = "1.18.0" // SupportedServerVersions is used by CLI and inter role communication. SupportedServerVersions = ">=1.0.0 <2.0.0" )
Variables ¶
This section is empty.
Functions ¶
func GetValues ¶
GetValues returns header values for passed header names. It always returns slice of the same size as number of passed header names.
func Propagate ¶
Propagate propagates version headers from incoming context to outgoing context. It copies all version headers to outgoing context only if they are exist in incoming context and doesn't exist in outgoing context already.
func SetCLIVersions ¶
SetCLIVersions sets headers for CLI requests.
func SetVersions ¶
SetVersions sets headers for internal communications.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.