MCPcopy
hub / github.com/segmentio/kafka-go / MetadataFromContext

Function MetadataFromContext

sasl/sasl.go:62–65  ·  view source on GitHub ↗

MetadataFromContext retrieves the Metadata from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

60
61// MetadataFromContext retrieves the Metadata from the context.
62func MetadataFromContext(ctx context.Context) *Metadata {
63 m, _ := ctx.Value(ctxKey{}).(*Metadata)
64 return m
65}

Callers 2

buildReqFunction · 0.92
StartMethod · 0.92

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected