services

package
v0.0.0-...-7e9a881 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CryptoError = "Crypto"
)

Variables

View Source
var (
	GDashboardDBTransactions []models.DBTransactionsInfo
	GDashboardChain          map[string]any
)
View Source
var (
	NodeTranStatusCh = make(chan *NodeTranStatuslistData, 10)
)
View Source
var (
	NodeTranStatusDaemonCh = make(chan *NodeTransactionStatus, 100)
)

Functions

func DealDashboardTopNum

func DealDashboardTopNum() error

func DealGetnodetransactionstatus

func DealGetnodetransactionstatus(node storage.HonorNodeModel) (int64, error)

func DealNodeblocktransactionchsqlite

func DealNodeblocktransactionchsqlite(ctx context.Context) error

func DealNodetransactionstatussqlite

func DealNodetransactionstatussqlite(ctx context.Context) error

func DealRedisDashboard

func DealRedisDashboard() error

func DealRedisDashboardGetChain

func DealRedisDashboardGetChain() (*map[string]any, error)

func GetBlockCCPricedat

func GetBlockCCPricedat(path string) (*[]map[string]any, error)

func GetBlockCCRatesdat

func GetBlockCCRatesdat(path string) (*models.RatesInfo, error)

func GetCheckchain

func GetCheckchain()

func GetGroupBlockLists

func GetGroupBlockLists() (*models.BlockListHeaderResponse, error)

func GetGroupBlockTpsLists

func GetGroupBlockTpsLists() (*[]models.ScanOutBlockTransactionRet, error)

func GetGroupTransactionEcosystemWallet

func GetGroupTransactionEcosystemWallet(id int64, ids int, icount int, wallet string, searchType string) (*[]models.HistoryHex, int64, decimal.Decimal, error)

func GetGroupTransactionHistory

func GetGroupTransactionHistory(ids int, icount int, order string) (*[]models.HistoryHex, int64, error)

func GetGroupTransactionStatus

func GetGroupTransactionStatus(ids int, icount int, order string) (*[]models.TransactionStatusHex, int64, error)

func GetGroupTransactionWallet

func GetGroupTransactionWallet(ids int, icount int, wallet string, searchType string) (*[]models.HistoryHex, int64, decimal.Decimal, error)

func GetHistoryMap

func GetHistoryMap() (*[]models.DBTransactionsInfo, error)

func GetTransactionDetailedInfoHash

func GetTransactionDetailedInfoHash(hash string) (*models.HistoryExplorer, error)

func GetTransactionHeadInfoHash

func GetTransactionHeadInfoHash(hash string) (*models.TxDetailedInfoHeadResponse, error)

func GetUtxoTransactionDetailedInfo

func GetUtxoTransactionDetailedInfo(hash string) (*models.UtxoExplorer, error)

func Get_ALLTables

func Get_ALLTables(id int64) (*[]map[string]string, error)

func Get_ColumnTypeTables

func Get_ColumnTypeTables(name string) (*[]map[string]string, error)

func Get_Dashboard_Get_chain

func Get_Dashboard_Get_chain() (*map[string]any, error)

func Get_Dashboard_history_map

func Get_Dashboard_history_map() (*[]models.DBTransactionsInfo, error)

func Getchain

func Getchain() (*map[string]any, error)

func Getchaindat

func Getchaindat(path string) (*models.DashboardChainInfo, error)

func Set_ALLTables

func Set_ALLTables(dat []map[string]string) error

func Set_ColumnTypeTables

func Set_ColumnTypeTables(name string, dat []map[string]string) error

func Set_Redis_Dashboard_Get_chain

func Set_Redis_Dashboard_Get_chain(dat *map[string]any) error

func Set_Redis_Dashboard_history_map

func Set_Redis_Dashboard_history_map(dat *[]models.DBTransactionsInfo) error

func WriteChannelByte

func WriteChannelByte(channel string, data []byte) error

Types

type CentJWT

type CentJWT struct {
	Sub string
	jwt.StandardClaims
}

type CentJWTToken

type CentJWTToken struct {
	Token string `json:"token"`
	Url   string `json:"url"`
}

func GetJWTCentToken

func GetJWTCentToken(userID, expire int64) (*CentJWTToken, error)

type NodeTranStatuslistData

type NodeTranStatuslistData struct {
	Data *[]models.TransactionStatus
}

type NodeTransactionStatus

type NodeTransactionStatus struct {
	Nodename     string `yaml:"nodename" json:"nodename"`
	NodePosition int64  `yaml:"nodeposition" json:"nodeposition"`
	Data         *[]models.TransactionStatus
}

Jump to

Keyboard shortcuts

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