2019-06-24 15:11:11 +01:00
|
|
|
// 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)
|
|
|
|
}
|
|
|
|
|
2019-06-24 15:22:12 +01:00
|
|
|
// A resolved record
|
2019-06-24 15:11:11 +01:00
|
|
|
type Record struct {
|
2019-06-24 15:21:24 +01:00
|
|
|
Address string `json:"address"`
|
2019-06-24 15:11:11 +01:00
|
|
|
}
|