Documentation ¶
Index ¶
- Constants
- func GetFromMetaString(ctx context.Context, key string) (string, error)
- func GetIntFromMeta(ctx context.Context, key string) (int64, error)
- func GetRequestIDFromMD(md metadata.MD) string
- func GetStringFromMeta(ctx context.Context, key string) (string, error)
- func IDFromOutgoingContext(ctx context.Context) string
- func TransferContextMeta(ctx context.Context, keys []string) context.Context
- type MDReaderWriter
Constants ¶
View Source
const (
// RequestIDOnMetaData unique request id
RequestIDOnMetaData = "ymi-micro-srv-req-id"
)
Variables ¶
This section is empty.
Functions ¶
func GetRequestIDFromMD ¶
func IDFromOutgoingContext ¶ added in v0.0.18
Types ¶
type MDReaderWriter ¶
func (MDReaderWriter) ForeachKey ¶
func (rw MDReaderWriter) ForeachKey(handler func(key, val string) error) error
func (MDReaderWriter) Set ¶
func (rw MDReaderWriter) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.