resolver

package
v2.3.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package resolver handles name resolution for the Swarm bee. It implements the Resolver interface as well as clients to connect to external name resolution services.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrParse denotes failure to parse given value
	ErrParse = errors.New("could not parse")
	// ErrNotFound denotes that given name was not found
	ErrNotFound = errors.New("not found")
	// ErrServiceNotAvailable denotes that remote ENS service is not available
	ErrServiceNotAvailable = errors.New("not available")
	// ErrInvalidContentHash denotes that the value of the response contenthash record is not valid.
	ErrInvalidContentHash = errors.New("invalid swarm content hash")
)

Functions

This section is empty.

Types

type Address

type Address = swarm.Address

Address is the swarm bzz address.

type Interface

type Interface interface {
	Resolve(url string) (Address, error)
	io.Closer
}

Interface can resolve an URL into an associated Ethereum address.

Directories

Path Synopsis
ens

Jump to

Keyboard shortcuts

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