resolver

package
v2.7.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: BSD-3-Clause Imports: 3 Imported by: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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("ENS service is 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