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

Struct mockResolver

dialer_test.go:397–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397type mockResolver struct {
398 addrs map[string][]string
399}
400
401func (mr *mockResolver) LookupHost(ctx context.Context, host string) ([]string, error) {
402 if addrs, ok := mr.addrs[host]; !ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected