2019-06-24 17:11:11 +03: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)
|
|
|
|
}
|
|
|
|
|
|
|
|
// A resoved id
|
|
|
|
type Record struct {
|
2019-06-24 17:21:24 +03:00
|
|
|
Address string `json:"address"`
|
2019-06-24 17:11:11 +03:00
|
|
|
}
|