Documentation ¶
Index ¶
- Constants
- func Ints32ToStrings(ary []int32) []string
- func Ints64ToStrings(ary []int64) []string
- func P2VInt(i *int) int
- func P2VInt64(i *int64) int64
- func P2VString(s *string) string
- func RequestMetadataFromHTTP(ctx context.Context) meta
- func StringsToInts32(ary []string) ([]int32, error)
- func StringsToInts64(ary []string) ([]int64, error)
- func WithRequestMetadataFromHTTP(r *http.Request, env string) context.Context
Constants ¶
View Source
const ( HandlerTypeHTTP = "http" HandlerTypeGRPC = "grpc" MDCountryCode = "country_code" MDEnv = "env" MDRequestID = "request_id" MDRequestIP = "request_ip" MDHostIP = "host_ip" MDHandler = "handler" MDUserAgent = "user_agent" MDReferer = "referer" )
Variables ¶
This section is empty.
Functions ¶
func Ints32ToStrings ¶
func Ints64ToStrings ¶
func RequestMetadataFromHTTP ¶
RequestMetadataFromHTTP get metadata from context
func StringsToInts32 ¶
func StringsToInts64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.