MCPcopy Create free account
hub / github.com/cortexproject/cortex / pushStreamServer

Struct pushStreamServer

pkg/ingester/pushstream_security_test.go:25–31  ·  view source on GitHub ↗

pushStreamServer is a mock implementation of Ingester_PushStreamServer for testing PushStream. Context() injects stream-level authentication (X-Scope-OrgID), and Recv() provides the sequence of StreamWriteRequests sent by the client.

Source from the content-addressed store, hash-verified

23// Context() injects stream-level authentication (X-Scope-OrgID),
24// and Recv() provides the sequence of StreamWriteRequests sent by the client.
25type pushStreamServer struct {
26 grpc.ServerStream
27 ctx context.Context
28 requests []*cortexpb.StreamWriteRequest
29 idx int
30 sent []*cortexpb.WriteResponse
31}
32
33func (s *pushStreamServer) Context() context.Context { return s.ctx }
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected