Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidContentHash denotes that the value of the contenthash record is // not valid. ErrInvalidContentHash = errors.New("invalid swarm content hash") // ErrResolveFailed is returned when a name could not be resolved. ErrResolveFailed = errors.New("resolve failed") // ErrNameNotFound is returned when a name resolves to an empty contenthash // record. ErrNameNotFound = errors.New("name not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string // contains filtered or unexported fields }
Client is a name resolution client that can connect to ENS via an Ethereum endpoint.
func (*Client) Close ¶
Close closes the RPC connection with the client, terminating all unfinished requests. Function obtains a write lock while interacting with the Ethereum client.
func (*Client) IsConnected ¶
IsConnected returns true if there is an active RPC connection with an Ethereum node at the configured endpoint. Function obtains a write lock while interacting with the Ethereum client.
Click to show internal directories.
Click to hide internal directories.