Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrontendHandler ¶
type FrontendHandler struct {
// contains filtered or unexported fields
}
func NewFrontendHandler ¶
func NewFrontendHandler(d *daemon.Daemon) *FrontendHandler
func (*FrontendHandler) Health ¶
func (fh *FrontendHandler) Health(w http.ResponseWriter, r *http.Request)
Health will return the "health" page using a go template
func (*FrontendHandler) Index ¶
func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
Index will return the "index" page using a go template
func (*FrontendHandler) Wallets ¶
func (fh *FrontendHandler) Wallets(w http.ResponseWriter, r *http.Request)
type HealthPage ¶
type HealthPage struct {
Clients []*HealthPageClient `json:"clients"`
ClientCount uint64 `json:"client_count"`
}
type HealthPageClient ¶
type IndexPage ¶
type IndexPage struct {
Spammers []*IndexPageSpammer
}
type IndexPageSpammer ¶
type WalletInfo ¶
type WalletInfo struct {
Address string `json:"address"`
Balance float64 `json:"balance"`
PendingNonce uint64 `json:"pending_nonce"`
ConfirmedNonce uint64 `json:"confirmed_nonce"`
SpammerID int64 `json:"spammer_id,omitempty"`
SpammerName string `json:"spammer_name,omitempty"`
SpammerStatus int `json:"spammer_status,omitempty"`
}
type WalletsPage ¶
type WalletsPage struct {
RootWallet *WalletInfo `json:"root_wallet"`
SpammerWallets []*WalletInfo `json:"spammer_wallets"`
}
Click to show internal directories.
Click to hide internal directories.