Documentation
¶
Overview ¶
Package key provides an internal set of keys for use with context.WithValue and context.Context.Value that can be shared across packages source.
Each key has a private type (a `struct{}`) and a public instance of that type.
Index ¶
Constants ¶
View Source
const ForceNoDetailedDiff = "__x-force-no-detailed-diff"
ForceNoDetailedDiff acts as a side-channel in github.com/sapslaj/mid/pkg/providerfw.DiffResponse.DetailedDiff to set HasDetailedDiff to false.
This is necessary for the github.com/sapslaj/mid/pkg/providerfw/middleware/rpc.Provider, but should not be used by outside providers, as they should support detailed diff in all cases.
The key should never be exposed at the gRPC wire level.
Variables ¶
View Source
var ( // RuntimeInfo is used to retrieve an [infer.RuntimeInfo] from ctx. RuntimeInfo = runtimeInfoType{} // Logger is used to retrieve an [infer.Logger] from ctx. Logger = logType{} // URN is used to retrieve an URN from ctx. URN = urnType{} // ProviderHost is used to retrieve a [provider.ProviderHost] from ctx. ProviderHost = providerHostType{} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.