Documentation
¶
Index ¶
- Constants
- Variables
- func ContextWithProduct(ctx context.Context, product string) context.Context
- func ParseIncomingMetadata(ctx context.Context) *common.Metadata
- func RequestMetadata(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" )
Variables ¶
View Source
var (
Debug = os.Getenv("DEBUG")
)
Functions ¶
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.