WIP: Save agent roles integration work before CHORUS rebrand
- Agent roles and coordination features - Chat API integration testing - New configuration and workspace management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
vendor/github.com/multiformats/go-multiaddr-dns/mock.go
generated
vendored
Normal file
31
vendor/github.com/multiformats/go-multiaddr-dns/mock.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package madns
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
type MockResolver struct {
|
||||
IP map[string][]net.IPAddr
|
||||
TXT map[string][]string
|
||||
}
|
||||
|
||||
var _ BasicResolver = (*MockResolver)(nil)
|
||||
|
||||
func (r *MockResolver) LookupIPAddr(ctx context.Context, name string) ([]net.IPAddr, error) {
|
||||
results, ok := r.IP[name]
|
||||
if ok {
|
||||
return results, nil
|
||||
} else {
|
||||
return []net.IPAddr{}, nil
|
||||
}
|
||||
}
|
||||
|
||||
func (r *MockResolver) LookupTXT(ctx context.Context, name string) ([]string, error) {
|
||||
results, ok := r.TXT[name]
|
||||
if ok {
|
||||
return results, nil
|
||||
} else {
|
||||
return []string{}, nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user