models

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteToExplorerBlockHeight

func WriteToExplorerBlockHeight(items []*Block) error

Types

type Block

type Block struct {
	Coin         string `json:"coin" db:"coin"`
	ExplorerName string `json:"explorer_name" db:"explorer_name"`
	Height       int64  `json:"height" db:"height"`
	Hash         string `json:"hash" db:"hash"`
	Link         string `json:"link" db:"link"`
	CreatedAt    string `json:"created_at" db:"created_at"`
	UpdatedAt    string `json:"updated_at" db:"updated_at"`
}

func GetExplorerBlockInfo

func GetExplorerBlockInfo(coinList []string) (result []*Block, err error)

func GetExplorerBlockInfoByTime

func GetExplorerBlockInfoByTime(datetime string) (result []*Block, err error)

Jump to

Keyboard shortcuts

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