Documentation ¶
Index ¶
- Constants
- func CheckingElasticsearchFn(config ElasticsearchConfig) checker.CmdFn
- func CheckingHDDFn(path string, size uint64) checker.CmdFn
- func CheckingNodeFn(min string) checker.CmdFn
- func CheckingPostgresDatabaseFn(config PostgresDBConfig) checker.CmdFn
- func CheckingRabbitFn(config RabbitConfig) checker.CmdFn
- func CheckingRedisFn(config RedisConfig) checker.CmdFn
- type DiskStatus
- type ElasticsearchConfig
- type EsResponse
- type EsVersion
- type PostgresDBConfig
- type RabbitConfig
- type RabbitResponse
- type RedisConfig
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func CheckingElasticsearchFn ¶
func CheckingElasticsearchFn(config ElasticsearchConfig) checker.CmdFn
func CheckingHDDFn ¶
func CheckingNodeFn ¶
func CheckingNodeFn(min string) checker.CmdFn
func CheckingPostgresDatabaseFn ¶
func CheckingPostgresDatabaseFn(config PostgresDBConfig) checker.CmdFn
func CheckingRabbitFn ¶
func CheckingRabbitFn(config RabbitConfig) checker.CmdFn
func CheckingRedisFn ¶
func CheckingRedisFn(config RedisConfig) checker.CmdFn
Types ¶
type DiskStatus ¶
func DiskUsage ¶
func DiskUsage(path string) (disk DiskStatus)
func (DiskStatus) AllString ¶
func (d DiskStatus) AllString() string
func (DiskStatus) FreeString ¶
func (d DiskStatus) FreeString() string
func (DiskStatus) HasFree ¶
func (d DiskStatus) HasFree(size uint64) bool
func (DiskStatus) String ¶
func (d DiskStatus) String() string
func (DiskStatus) UsedString ¶
func (d DiskStatus) UsedString() string
type ElasticsearchConfig ¶
type EsResponse ¶
func (EsResponse) String ¶
func (r EsResponse) String() string
type PostgresDBConfig ¶
type RabbitConfig ¶
type RabbitResponse ¶
Click to show internal directories.
Click to hide internal directories.