Documentation
¶
Index ¶
Constants ¶
View Source
const (
UserAgentName = "Flipcash"
)
Variables ¶
This section is empty.
Functions ¶
func GetClientVersion ¶ added in v1.26.0
func GetClientVersion(ctx context.Context) *ocp_client.Version
GetClientVersion extracts the client's version from the gRPC user-agent, or returns nil if no parseable Flipcash user-agent is present.
A nil version means the caller is unidentifiable, not that it is new. Gating on a version should treat nil as the older behaviour, so a client that cannot be placed is never handed something it may not understand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.