models

package
v0.0.0-...-453ec06 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitqueryData

type BitqueryData struct {
	Data struct {
		Ethereum struct {
			Transfers []Transfers
		}
	}
}

Works as a adapter so the received data, once this has a particular structure that demands the data to be wraped by other structs dificulting it conversion.

type Read

type Read struct {
	gorm.Model
	BurnedTokens float64 `json:"burnedTokens"`
	Holders      int64   `json:"holders"`
	Transfers    int64   `json:"transfers"`
	Date         string  `json:"date"`
	Hour         string  `json:"hour"`
}

type Transfers

type Transfers struct {
	Count    int64
	Days     int
	Min_date string
	Max_date string
}

Stores the data received by the query.

Jump to

Keyboard shortcuts

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