micro/network/resolver/resolver.go

13 lines
245 B
Go
Raw Normal View History

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 {
Address string
}