resolver

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Overview

Package resolver handles name resolution for the Cluster mop. 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 cluster content hash")
)

Functions

This section is empty.

Types

type Address

type Address = cluster.Address

Address is the cluster mop address.

type Interface

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

Interface can resolve an URL into an associated BNB Smart Chain.

Directories

Path Synopsis
ens

Jump to

Keyboard shortcuts

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