handlers

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientsPage added in v1.1.5

type ClientsPage struct {
	Clients     []*ClientsPageClient `json:"clients"`
	ClientCount uint64               `json:"client_count"`
}

type ClientsPageClient added in v1.1.5

type ClientsPageClient struct {
	Index         int      `json:"index"`
	Name          string   `json:"name"`
	Group         string   `json:"group"`  // First group for backward compatibility
	Groups        []string `json:"groups"` // All groups
	Type          string   `json:"type"`   // Client type (client, builder)
	Version       string   `json:"version"`
	BlockHeight   uint64   `json:"block_height"`
	IsReady       bool     `json:"ready"`
	Enabled       bool     `json:"enabled"`
	NameOverride  string   `json:"name_override,omitempty"`
	TotalRequests uint64   `json:"total_requests"`
	TxRequests    uint64   `json:"tx_requests"`
	RpcFailures   uint64   `json:"rpc_failures"`
}

type FrontendHandler

type FrontendHandler struct {
	// contains filtered or unexported fields
}

func NewFrontendHandler

func NewFrontendHandler(d *daemon.Daemon) *FrontendHandler

func (*FrontendHandler) Audit added in v1.1.9

func (fh *FrontendHandler) Audit(w http.ResponseWriter, r *http.Request)

Audit will return the "audit" page using a go template The page content is loaded dynamically via JavaScript and protected API calls

func (*FrontendHandler) Clients added in v1.1.5

func (fh *FrontendHandler) Clients(w http.ResponseWriter, r *http.Request)

Clients will return the "clients" page using a go template

func (*FrontendHandler) Graphs added in v1.1.6

func (fh *FrontendHandler) Graphs(w http.ResponseWriter, r *http.Request)

Graphs will return the "graphs" 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) Plugins added in v1.2.0

func (fh *FrontendHandler) Plugins(w http.ResponseWriter, r *http.Request)

Plugins renders the plugins management page.

func (*FrontendHandler) Wallets

func (fh *FrontendHandler) Wallets(w http.ResponseWriter, r *http.Request)

type GraphsPage added in v1.1.6

type GraphsPage struct {
}

type IndexPage

type IndexPage struct {
	Spammers              []*IndexPageSpammer
	StartupDelayActive    bool
	StartupDelayRemaining int64
}

type IndexPageSpammer

type IndexPageSpammer struct {
	ID          int64     `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Scenario    string    `json:"scenario"`
	Status      int       `json:"status"`
	CreatedAt   time.Time `json:"created_at"`
}

type WalletInfo

type WalletInfo struct {
	Address        string `json:"address"`
	Name           string `json:"name"`
	Balance        string `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"`
}

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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