Documentation ¶
Index ¶
- Variables
- func LoadMetadatas() error
- func ReadOSRawDataFiles(gb *gloomberg.Gloomberg, filePath string)
- func ReadOpenSeaMetadataAndRanks(gb *gloomberg.Gloomberg, filePath string, slug string) error
- func SortMapByValue(m map[string]int64, reverse bool) []string
- func WriteDataToFile(data interface{}, filePath string)
- func ZstdCompress(in io.Reader, out io.Writer) error
- type Metadata
- type MetadataAttribute
- type OpenSeaMetadata
- type OpenSeaRanks
- type Score
- type TokenRank
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadMetadatas ¶
func LoadMetadatas() error
func ReadOSRawDataFiles ¶ added in v0.7.3
func ReadOpenSeaMetadataAndRanks ¶ added in v0.7.3
func WriteDataToFile ¶
func WriteDataToFile(data interface{}, filePath string)
Types ¶
type Metadata ¶
type Metadata struct { Attributes []MetadataAttribute `json:"-"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` TokenID int64 `json:"token_id"` ContractAddress common.Address `json:"-"` Score Score `json:"score,omitempty"` }
func ReadMetadataFromFile ¶
type MetadataAttribute ¶
type OpenSeaMetadata ¶ added in v0.7.3
type OpenSeaRanks ¶ added in v0.7.3
Click to show internal directories.
Click to hide internal directories.