service

package
v0.0.0-...-7fa8b83 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B  = 1
	KB = 1024 * B
	MB = 1024 * KB
	GB = 1024 * MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SdService

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

func NewSdService

func NewSdService(cache *repository.Cache, sdDomain *domain.SdDomain) *SdService

func (*SdService) CPUCheck

func (s *SdService) CPUCheck(c *gin.Context)

CPUCheck CPU信息

func (*SdService) DiskCheck

func (s *SdService) DiskCheck(c *gin.Context)

DiskCheck 硬盘信息

func (*SdService) HealthCheck

func (s *SdService) HealthCheck(c *gin.Context)

HealthCheck 健康状况

func (*SdService) RAMCheck

func (s *SdService) RAMCheck(c *gin.Context)

RAMCheck 内存信息

Jump to

Keyboard shortcuts

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