resolver

package
v3.3.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package resolver resolves network names to addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Address  string `json:"address"`
	Priority int64  `json:"priority"`
}

Record that resolved

type Resolver

type Resolver interface {
	// Resolve returns a list of addresses for a name
	Resolve(name string) ([]*Record, error)
}

Resolver is network resolver. It's used to find network nodes via the name to connect to. This is done based on Network.Name(). Before we can be part of any network, we have to connect to it.

Directories

Path Synopsis
Package dns resolves names to dns records
Package dns resolves names to dns records
Package dnssrv resolves names to dns srv records
Package dnssrv resolves names to dns srv records
Package http resolves names to network addresses using a http request
Package http resolves names to network addresses using a http request
Package noop is a noop resolver
Package noop is a noop resolver
Package register resolves names using the micro register
Package register resolves names using the micro register
Package static is a static resolver
Package static is a static resolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL