Documentation ¶
Index ¶
- Constants
- Variables
- func AppendOutgoingMetadata(ctx context.Context, md *common.Metadata) context.Context
- func ContextWithProduct(ctx context.Context, product string) context.Context
- func IncomingMetadata(ctx context.Context) *common.Metadata
- func ParseIncomingMetadata(ctx context.Context) *common.Metadata
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Constants ¶
View Source
const ( KeyToken = "token" KeyPlatform = "platform" KeyNetwork = "network" KeyPackage = "package" KeyVersion = "version" KeyOSVersion = "os_version" KeyBrand = "brand" KeyModel = "model" KeyDeviceID = "device_id" KeyTimestamp = "timestamp" KeyIsEmulator = "is_emulator" KeyIsDebug = "is_debug" KeyLatitude = "latitude" KeyLongitude = "longitude" KeyLocale = "locale" KeyChannel = "channel" KeyProduct = "product" KeyTraceID = "trace_id" KeyRiskID = "risk_id" KeyUUID = "uuid" KeyUDID = "udid" KeyUserAgent = "user_agent" KeyDeviceMac = "device_mac" KeyAndroidID = "android_id" KeyOriginalIP = "x-forwarded-for" )
Variables ¶
View Source
var ( Debug = os.Getenv("DEBUG") SSHTunnel = os.Getenv("SSH_TUNNEL") )
Functions ¶
func AppendOutgoingMetadata ¶ added in v1.1.3
func ContextWithProduct ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor for parsing request metadata.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptor for parsing request metadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.