add resolver comment

This commit is contained in:
Asim Aslam 2019-07-01 23:11:55 +01:00
parent ebe3633082
commit 5fd798c9b6

View File

@ -1,6 +1,9 @@
// Package resolver resolves network ids to addresses // Package resolver resolves network ids to addresses
package resolver 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 { type Resolver interface {
// Resolve returns a list of addresses for an id // Resolve returns a list of addresses for an id
Resolve(id string) ([]*Record, error) Resolve(id string) ([]*Record, error)