resolver

package
v0.0.0-...-eb12069 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

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