controller

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(config *config.Config, database *db.Database) *Controller

func (*Controller) GetEngine

func (c *Controller) GetEngine() *gin.Engine

func (*Controller) SetupDebugRoutes

func (c *Controller) SetupDebugRoutes()

TODO: Implement c.setupPushRoutes()

func (*Controller) SetupRoutes

func (c *Controller) SetupRoutes()

type CpuUsage

type CpuUsage struct {
	Time              string `json:"time"`
	Percent           string `json:"percent"`
	HumanFriendlyTime string `json:"human_friendly_time,omitempty"`
}

type MemUsage

type MemUsage struct {
	Time              string  `json:"time"`
	Total             uint64  `json:"total"`
	Available         uint64  `json:"available"`
	Used              uint64  `json:"used"`
	UsedPercent       float64 `json:"usedPercent"`
	Free              uint64  `json:"free"`
	HumanFriendlyTime string  `json:"human_friendly_time,omitempty"`
}

Jump to

Keyboard shortcuts

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