mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-23 17:53:05 +02:00
13 lines
267 B
Go
13 lines
267 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 resolved record
|
|
type Record struct {
|
|
Address string `json:"address"`
|
|
}
|