rpc

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL