Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFailedToConnect denotes that the resolver failed to connect to the // provided endpoint. ErrFailedToConnect = errors.New("failed to connect") // ErrResolveFailed denotes that a name could not be resolved. ErrResolveFailed = errors.New("resolve failed") // ErrInvalidContentHash denotes that the value of the contenthash record is // not valid. ErrInvalidContentHash = errors.New("invalid swarm content hash") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// 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. If the connection is already closed, this call is a noop.
func (*Client) IsConnected ¶
IsConnected returns true if there is an active RPC connection with an Ethereum node at the configured endpoint.
Click to show internal directories.
Click to hide internal directories.