nftsource

package
v1.4.561 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	AssetContract AssetContract `json:"asset_contract"`
}

type AssetContract

type AssetContract struct {
	Address      string `json:"address"`
	ContractType string `json:"asset_contract_type"`
	Symbol       string `json:"symbol"`
	Name         string `json:"name"`
}

type NFTClassSource

type NFTClassSource interface {
	NFTClass() chan dia.NFTClass
	Close() chan bool
}

AssetSource is the interface that must be implemented by an asset scraper.

type OpenseaNFTSource

type OpenseaNFTSource struct {
	APIurl string
	// contains filtered or unexported fields
}

func NewOpenseaNFTSource

func NewOpenseaNFTSource(secret string) *OpenseaNFTSource

func (*OpenseaNFTSource) Close

func (ons *OpenseaNFTSource) Close() chan bool

func (*OpenseaNFTSource) NFTClass

func (ons *OpenseaNFTSource) NFTClass() chan dia.NFTClass

Jump to

Keyboard shortcuts

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