MCPcopy
hub / github.com/IBM/sarama / NewMockOffsetResponse

Function NewMockOffsetResponse

mockresponses.go:229–234  ·  mockresponses.go::NewMockOffsetResponse
(t TestReporter)

Source from the content-addressed store, hash-verified

227}
228
229func NewMockOffsetResponse(t TestReporter) *MockOffsetResponse {
230 return &MockOffsetResponse{
231 offsets: make(map[string]map[int32]map[int64]int64),
232 t: t,
233 }
234}
235
236func (mor *MockOffsetResponse) SetOffset(topic string, partition int32, time, offset int64) *MockOffsetResponse {
237 partitions := mor.offsets[topic]

Calls

no outgoing calls