Documentation ¶
Index ¶
- Constants
- Variables
- func DealDashboardTopNum() error
- func DealGetnodetransactionstatus(node storage.HonorNodeModel) (int64, error)
- func DealNodeblocktransactionchsqlite(ctx context.Context) error
- func DealNodetransactionstatussqlite(ctx context.Context) error
- func DealRedisDashboard() error
- func DealRedisDashboardGetChain() (*map[string]any, error)
- func GetBlockCCPricedat(path string) (*[]map[string]any, error)
- func GetBlockCCRatesdat(path string) (*models.RatesInfo, error)
- func GetCheckchain()
- func GetGroupBlockLists() (*models.BlockListHeaderResponse, error)
- func GetGroupBlockTpsLists() (*[]models.ScanOutBlockTransactionRet, error)
- func GetGroupTransactionEcosystemWallet(id int64, ids int, icount int, wallet string, searchType string) (*[]models.HistoryHex, int64, decimal.Decimal, error)
- func GetGroupTransactionHistory(ids int, icount int, order string) (*[]models.HistoryHex, int64, error)
- func GetGroupTransactionStatus(ids int, icount int, order string) (*[]models.TransactionStatusHex, int64, error)
- func GetGroupTransactionWallet(ids int, icount int, wallet string, searchType string) (*[]models.HistoryHex, int64, decimal.Decimal, error)
- func GetHistoryMap() (*[]models.DBTransactionsInfo, error)
- func GetTransactionDetailedInfoHash(hash string) (*models.HistoryExplorer, error)
- func GetTransactionHeadInfoHash(hash string) (*models.TxDetailedInfoHeadResponse, error)
- func GetUtxoTransactionDetailedInfo(hash string) (*models.UtxoExplorer, error)
- func Get_ALLTables(id int64) (*[]map[string]string, error)
- func Get_ColumnTypeTables(name string) (*[]map[string]string, error)
- func Get_Dashboard_Get_chain() (*map[string]any, error)
- func Get_Dashboard_history_map() (*[]models.DBTransactionsInfo, error)
- func Getchain() (*map[string]any, error)
- func Getchaindat(path string) (*models.DashboardChainInfo, error)
- func Set_ALLTables(dat []map[string]string) error
- func Set_ColumnTypeTables(name string, dat []map[string]string) error
- func Set_Redis_Dashboard_Get_chain(dat *map[string]any) error
- func Set_Redis_Dashboard_history_map(dat *[]models.DBTransactionsInfo) error
- func WriteChannelByte(channel string, data []byte) error
- type CentJWT
- type CentJWTToken
- type NodeTranStatuslistData
- type NodeTransactionStatus
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 DealRedisDashboard ¶
func DealRedisDashboard() error
func GetCheckchain ¶
func GetCheckchain()
func GetGroupBlockLists ¶
func GetGroupBlockLists() (*models.BlockListHeaderResponse, error)
func GetGroupBlockTpsLists ¶
func GetGroupBlockTpsLists() (*[]models.ScanOutBlockTransactionRet, 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_Dashboard_Get_chain ¶
func Get_Dashboard_history_map ¶
func Get_Dashboard_history_map() (*[]models.DBTransactionsInfo, error)
func Getchaindat ¶
func Getchaindat(path string) (*models.DashboardChainInfo, error)
func Set_ALLTables ¶
func Set_Redis_Dashboard_history_map ¶
func Set_Redis_Dashboard_history_map(dat *[]models.DBTransactionsInfo) error
func WriteChannelByte ¶
Types ¶
type CentJWTToken ¶
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 }
Click to show internal directories.
Click to hide internal directories.