13 lines
245 B
Go
13 lines
245 B
Go
// Package resolver resolves network ids to addresses
|
|
package resolver
|
|
|
|
type Resolver interface {
|
|
// Resolve returns a list of addresses for an id
|
|
Resolve(id string) ([]*Record, error)
|
|
}
|
|
|
|
// A resoved id
|
|
type Record struct {
|
|
Address string
|
|
}
|