Documentation
¶
Index ¶
- func GetPublicIP(version string) (string, error)
- type CPUStats
- type DNSHealth
- type DiskStats
- type LoadAverage
- type MemoryStats
- type NetworkHealth
- type NetworkInterface
- type ResolverCheck
- type ServerInfo
- type Service
- type ServicesManager
- func (m *ServicesManager) DisableService(name string) error
- func (m *ServicesManager) EnableService(name string) error
- func (m *ServicesManager) GetService(name string) (*Service, error)
- func (m *ServicesManager) ListServices() ([]Service, error)
- func (m *ServicesManager) RestartService(name string) error
- func (m *ServicesManager) StartService(name string) error
- func (m *ServicesManager) StopService(name string) error
- type SystemStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicIP ¶ added in v0.1.5
Types ¶
type DNSHealth ¶ added in v0.1.5
type DNSHealth struct {
Healthy bool `json:"healthy"`
Resolvers []ResolverCheck `json:"resolvers"`
}
type LoadAverage ¶ added in v0.1.5
type MemoryStats ¶ added in v0.1.5
type NetworkHealth ¶ added in v0.1.5
type NetworkHealth struct {
ExternalAccess bool `json:"external_access"`
DNS DNSHealth `json:"dns"`
Interfaces []NetworkInterface `json:"interfaces"`
CheckedAt time.Time `json:"checked_at"`
}
func CheckNetworkHealth ¶ added in v0.1.5
func CheckNetworkHealth(ctx context.Context) (*NetworkHealth, error)
type NetworkInterface ¶ added in v0.1.5
type ResolverCheck ¶ added in v0.1.5
type ServerInfo ¶ added in v0.1.5
type ServerInfo struct {
Hostname string `json:"hostname"`
AgentURL string `json:"agent_url"`
PublicIPv4 string `json:"public_ipv4"`
PublicIPv6 string `json:"public_ipv6"`
Interfaces []NetworkInterface `json:"interfaces"`
}
func GetServerInfo ¶ added in v0.1.5
func GetServerInfo() (*ServerInfo, error)
type ServicesManager ¶
type ServicesManager struct{}
func NewServicesManager ¶
func NewServicesManager() *ServicesManager
func (*ServicesManager) DisableService ¶
func (m *ServicesManager) DisableService(name string) error
func (*ServicesManager) EnableService ¶
func (m *ServicesManager) EnableService(name string) error
func (*ServicesManager) GetService ¶
func (m *ServicesManager) GetService(name string) (*Service, error)
func (*ServicesManager) ListServices ¶
func (m *ServicesManager) ListServices() ([]Service, error)
func (*ServicesManager) RestartService ¶
func (m *ServicesManager) RestartService(name string) error
func (*ServicesManager) StartService ¶
func (m *ServicesManager) StartService(name string) error
func (*ServicesManager) StopService ¶
func (m *ServicesManager) StopService(name string) error
type SystemStats ¶ added in v0.1.5
type SystemStats struct {
CPU CPUStats `json:"cpu"`
Memory MemoryStats `json:"memory"`
Disk DiskStats `json:"disk"`
Uptime int64 `json:"uptime"`
LoadAvg LoadAverage `json:"load_avg"`
}
func GetSystemStats ¶ added in v0.1.5
func GetSystemStats() (*SystemStats, error)
Click to show internal directories.
Click to hide internal directories.