dashboard

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

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

Dashboard manages the web dashboard

func NewDashboard

func NewDashboard(cfg *config.Configuration, db *database.IPDatabase) *Dashboard

NewDashboard creates a new dashboard instance

func (*Dashboard) Run

func (d *Dashboard) Run() error

Run starts the dashboard HTTP server

type IPResponse

type IPResponse struct {
	Address     string `json:"address"`
	Score       int    `json:"score"`
	Country     string `json:"country"`
	Path        string `json:"path"`
	PayloadPath string `json:"payload_path,omitempty"`
	BlockedInFW bool   `json:"blocked_in_fw"`
	Timestamp   string `json:"timestamp"`
}

type StatsResponse

type StatsResponse struct {
	DatabaseStats database.Stats `json:"database_stats"`
	Uptime        string         `json:"uptime"`
	Timestamp     string         `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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