Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + const UserAgentHeaderName + func GetIPAddr(ctx context.Context) (string, error) + func InjectLoggingMetadata(ctx context.Context, log *logrus.Entry) *logrus.Entry + func MinVersionStreamServerInterceptor() grpc.StreamServerInterceptor + func MinVersionUnaryServerInterceptor() grpc.UnaryServerInterceptor + type DeviceType uint8 + const DeviceTypeAndroid + const DeviceTypeIOS + const DeviceTypeUnknown + func (t DeviceType) IsMobile() bool + func (t DeviceType) String() string + type UserAgent struct + DeviceType DeviceType + Version Version + func GetUserAgent(ctx context.Context) (*UserAgent, error) + func (ua *UserAgent) String() string + type Version struct + Major int + Minor int + Patch int + func ParseVersion(value string) (*Version, error) + func (v *Version) Before(other *Version) bool + func (v *Version) GreaterThanOrEqualTo(other *Version) bool + func (v *Version) String() string