mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
add resolver comment
This commit is contained in:
parent
ebe3633082
commit
5fd798c9b6
@ -1,6 +1,9 @@
|
||||
// Package resolver resolves network ids to addresses
|
||||
package resolver
|
||||
|
||||
// Resolver is network resolver. It's used to find network nodes
|
||||
// via id to connect to. This is done based on Network.Id().
|
||||
// Before we can be part of any network, we have to connect to it.
|
||||
type Resolver interface {
|
||||
// Resolve returns a list of addresses for an id
|
||||
Resolve(id string) ([]*Record, error)
|
||||
|
Loading…
Reference in New Issue
Block a user