Versions in this module Expand all Collapse all v0 v0.4.2 May 4, 2024 v0.4.1 May 1, 2024 Changes in this version + var ErrorMethodNotAllowed = errors.New("Method not allowed") + type InternalServer struct + func NewInternalServer(binding, certFiles string, db *db.RocksDB, chain bchain.BlockChain, ...) (*InternalServer, error) + func (s *InternalServer) Close() error + func (s *InternalServer) Run() error + func (s *InternalServer) Shutdown(ctx context.Context) error + type PublicServer struct + func NewPublicServer(binding string, certFiles string, db *db.RocksDB, chain bchain.BlockChain, ...) (*PublicServer, error) + func (s *PublicServer) Close() error + func (s *PublicServer) ConnectFullPublicInterface() + func (s *PublicServer) OnNewBlock(hash string, height uint32) + func (s *PublicServer) OnNewFiatRatesTicker(ticker *common.CurrencyRatesTicker) + func (s *PublicServer) OnNewTx(tx *bchain.MempoolTx) + func (s *PublicServer) OnNewTxAddr(tx *bchain.Tx, desc bchain.AddressDescriptor) + func (s *PublicServer) Run() error + func (s *PublicServer) Shutdown(ctx context.Context) error + type SocketIoServer struct + func NewSocketIoServer(db *db.RocksDB, chain bchain.BlockChain, mempool bchain.Mempool, ...) (*SocketIoServer, error) + func (s *SocketIoServer) GetHandler() http.Handler + func (s *SocketIoServer) OnNewBlockHash(hash string) + func (s *SocketIoServer) OnNewTxAddr(txid string, desc bchain.AddressDescriptor) + type TemplateData struct + AddrStr string + Address *api.Address + Block *api.Block + Blocks *api.Blocks + ChainType bchain.ChainType + CoinLabel string + CoinName string + CoinShortcut string + ContractInfo *bchain.ContractInfo + CurrentSecondaryCoinRate float64 + CurrentTicker *common.CurrencyRatesTicker + Error *api.APIError + Info *api.SystemInfo + InternalExplorer bool + MempoolTxids *api.MempoolTxids + Minified string + NextPage int + NonZeroBalanceTokens bool + Page int + PageParams template.URL + PagingRange []int + PrevPage int + SecondaryCoin string + SecondaryCurrencies []string + SendTxHex string + Status string + TOSLink string + TokenId string + Tx *api.Tx + TxDate string + TxSecondaryCoinRate float64 + TxTicker *common.CurrencyRatesTicker + URI string + UseSecondaryCoin bool + type WebsocketServer struct + func NewWebsocketServer(db *db.RocksDB, chain bchain.BlockChain, mempool bchain.Mempool, ...) (*WebsocketServer, error) + func (s *WebsocketServer) GetHandler() http.Handler + func (s *WebsocketServer) OnNewBlock(hash string, height uint32) + func (s *WebsocketServer) OnNewFiatRatesTicker(ticker *common.CurrencyRatesTicker) + func (s *WebsocketServer) OnNewTx(tx *bchain.MempoolTx) + func (s *WebsocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request)