etherface

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtherfaceEndpoint = "https://etherface.rss3.io/v1"
	DefaultTimeout    = 3 * time.Second
	DefaultAttempts   = 3
)

Variables

View Source
var (
	ErrorNoResults = errors.New("no results")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Lookup(ctx context.Context, hash string) (string, error)
}

func NewEtherfaceClient

func NewEtherfaceClient(options ...ClientOption) (Client, error)

type ClientOption

type ClientOption func(client *etherfaceClient) error

func WithAttempts

func WithAttempts(attempts uint) ClientOption

func WithTimeout

func WithTimeout(timeout time.Duration) ClientOption

Jump to

Keyboard shortcuts

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