ens

package
v0.92.6 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(rpcClient *rpc.Client) *API

func (*API) AddressOf

func (api *API) AddressOf(ctx context.Context, chainID uint64, username string) (*common.Address, error)

func (*API) ContentHash

func (api *API) ContentHash(ctx context.Context, chainID uint64, username string) ([]byte, error)

func (*API) ExpireAt

func (api *API) ExpireAt(ctx context.Context, chainID uint64, username string) (*big.Int, error)

func (*API) OwnerOf

func (api *API) OwnerOf(ctx context.Context, chainID uint64, username string) (*common.Address, error)

func (*API) Price

func (api *API) Price(ctx context.Context, chainID uint64) (*big.Int, error)

func (*API) PublicKeyOf

func (api *API) PublicKeyOf(ctx context.Context, chainID uint64, username string) (*publicKey, error)

func (*API) Resolver

func (api *API) Resolver(ctx context.Context, chainID uint64, username string) (*common.Address, error)

func (*API) ResourceURL

func (api *API) ResourceURL(ctx context.Context, chainID uint64, username string) (*uri, error)

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a browsers service.

func NewService

func NewService(rpcClient *rpc.Client) *Service

NewService initializes service instance.

func (*Service) APIs

func (s *Service) APIs() []ethRpc.API

APIs returns list of available RPC APIs.

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

Protocols returns list of p2p protocols.

func (*Service) Start

func (s *Service) Start() error

Start a service.

func (*Service) Stop

func (s *Service) Stop() error

Stop a service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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