Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostNetStat ¶
type HostResourceStats ¶
type HostResourceStats struct {
CpuUsagePercent uint8 `json:"cpu_used_percent"`
MemStat MemoryStat `json:"memory"`
DiskStats []DiskStat `json:"disks"`
NetStat HostNetStat `json:"network"`
}
HostResourceStats : struct to hold host resource stats
type LoginResponse ¶
type LoginResponse struct {
Message string `json:"message"`
Token string `json:"token"`
TotpRequired bool `json:"totp_required"`
}
LoginResponse : struct to hold login response
type MemoryStat ¶
type ResourceStatsData ¶
type ResourceStatsData struct {
SystemStat HostResourceStats `json:"system"`
ServiceStats map[string]*ServiceResourceStats `json:"services"`
TimeStamp uint64 `json:"timestamp"`
}
ResourceStatsData : struct to hold analytics stats data
type Server ¶
type Server struct {
EchoServer *echo.Echo
Config *config.Config
ServiceManager *service_manager.ServiceManager
WorkerManager *worker.Manager
}
Server : hold references to other components of service
func (*Server) Initialize ¶
func (server *Server) Initialize()
Initialize : Initialize the server and its routes
func (*Server) MigrateDatabaseTables ¶
func (server *Server) MigrateDatabaseTables()
Migrate database table
type ServiceNetStat ¶
type ServiceResourceStats ¶
type ServiceResourceStats struct {
ServiceCpuTime uint64 `json:"service_cpu_time"`
SystemCpuTime uint64 `json:"system_cpu_time"`
UsedMemoryMB uint64 `json:"used_memory_mb"`
NetStat ServiceNetStat `json:"network"`
}
ServiceResourceStats : struct to hold service resource stats
Click to show internal directories.
Click to hide internal directories.