handlers

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditPage added in v1.1.9

type AuditPage struct {
	Stats   *AuditPageStats   `json:"stats"`
	Logs    []*AuditPageEntry `json:"logs"`
	Filters *AuditPageFilters `json:"filters"`
}

type AuditPageEntry added in v1.1.9

type AuditPageEntry struct {
	ID         int64     `json:"id"`
	UserEmail  string    `json:"user_email"`
	ActionType string    `json:"action_type"`
	EntityType string    `json:"entity_type"`
	EntityID   string    `json:"entity_id"`
	EntityName string    `json:"entity_name"`
	Diff       string    `json:"diff"`
	Metadata   string    `json:"metadata"`
	Timestamp  time.Time `json:"timestamp"`
}

type AuditPageFilters added in v1.1.9

type AuditPageFilters struct {
	UserEmail  string `json:"user_email"`
	ActionType string `json:"action_type"`
	EntityType string `json:"entity_type"`
	EntityID   string `json:"entity_id"`
}

type AuditPageStats added in v1.1.9

type AuditPageStats struct {
	TotalLogs        int64            `json:"total_logs"`
	LogsByActionType map[string]int64 `json:"logs_by_action_type"`
	LogsByEntityType map[string]int64 `json:"logs_by_entity_type"`
	LogsByUser       map[string]int64 `json:"logs_by_user"`
}

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

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) 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"`
	Config      string    `json:"config"`
	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