sd

package
v0.0.0-...-840a1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 16 Imported by: 3

Documentation

Index

Constants

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

Variables

View Source
var (
	// ID represents the unique identifier of the service.
	ID string
	// Tags represents the tags of the service (separated by the commas, ex: `a, b, c`).
	Tags string
)

Functions

func CPUCheck

func CPUCheck(c *gin.Context)

CPUCheck checks the cpu usage.

func DiskCheck

func DiskCheck(c *gin.Context)

DiskCheck checks the disk usage.

func HealthCheck

func HealthCheck(c *gin.Context)

HealthCheck shows `OK` as the ping-pong result.

func RAMCheck

func RAMCheck(c *gin.Context)

RAMCheck checks the disk usage.

func Register

func Register(c *cli.Context)

Register the service to the service registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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