Versions in this module Expand all Collapse all v5 v5.1.1 Aug 19, 2019 v5.0.1 Jul 19, 2019 Changes in this version + const ExpStatusBadRequest + const ExpStatusDBTimeout + const ExpStatusDeprecated + const ExpStatusError + const ExpStatusFutureBlock + const ExpStatusNotFound + const ExpStatusNotImplemented + const ExpStatusNotSupported + const ExpStatusP2PKAddress + const ExpStatusPageDisabled + const ExpStatusSyncing + const ExpStatusWrongNetwork + const MaxAddressRows + func AddressPathCtx(next http.Handler) http.Handler + func AgendaPathCtx(next http.Handler) http.Handler + func DisableLog() + func MenuFormParser(next http.Handler) http.Handler + func New(cfg *ExplorerConfig) *explorerUI + func ProposalPathCtx(next http.Handler) http.Handler + func TicketStatusText(s dbtypes.TicketSpendType, p dbtypes.TicketPoolStatus) string + func TransactionHashCtx(next http.Handler) http.Handler + func TransactionIoIndexCtx(next http.Handler) http.Handler + func UseLogger(logger slog.Logger) + type CommonPageData struct + BlockTimeUnix int64 + ChainParams *chaincfg.Params + Cookies Cookies + DevAddress string + Links *links + NetName string + RequestURI string + Tip *types.WebBasicBlock + Version string + type Cookies struct + DarkMode bool + type ExplorerConfig struct + AgendasSource agendaBackend + AppVersion string + DataSource explorerDataSourceLite + DevPrefetch bool + MainnetLink string + PoliteiaURL string + PrimaryDataSource explorerDataSource + ProposalsSource PoliteiaBackend + TestnetLink string + Tracker *agendas.VoteTracker + UseRealIP bool + Viewsfolder string + XcBot *exchanges.ExchangeBot + type PoliteiaBackend interface + AllProposals func(offset, rowsCount int, filterByVoteStatus ...int) (proposals []*pitypes.ProposalInfo, totalCount int, err error) + CheckProposalsUpdates func() error + LastProposalsSync func() int64 + ProposalByRefID func(RefID string) (*pitypes.ProposalInfo, error) + ProposalByToken func(proposalToken string) (*pitypes.ProposalInfo, error) + type SyncStatusInfo struct + BarMsg string + BarSubtitle string + PercentComplete float64 + ProgressBarID string + Time int64 + func SyncStatus() []SyncStatusInfo + type WebSocketMessage struct + EventId string + Message string + type WebsocketExchangeUpdate struct + BtcIndex string + BtcPrice float64 + IsFiatIndex bool + Price float64 + Updater WebsocketMiniExchange + Volume float64 + type WebsocketHub struct + HubRelay chan hubMessage + Register chan *clientHubSpoke + Unregister chan *hubSpoke + func NewWebsocketHub() *WebsocketHub + func (wsh *WebsocketHub) AreDBsSyncing() bool + func (wsh *WebsocketHub) NumClients() int + func (wsh *WebsocketHub) RegisterClient(c *hubSpoke, xcChan exchangeChannel) *client + func (wsh *WebsocketHub) SetDBsSyncing(syncing bool) + func (wsh *WebsocketHub) Stop() + func (wsh *WebsocketHub) UnregisterClient(c *hubSpoke) + type WebsocketMiniExchange struct + Change float64 + Price float64 + Token string + Volume float64 Other modules containing this package github.com/decred/dcrdata github.com/decred/dcrdata/v3 github.com/decred/dcrdata/v4 github.com/decred/dcrdata/v6 github.com/decred/dcrdata/v7