health

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRegister

type CheckRegister struct {
	Member map[string]CommandHealth
}

CheckRegister is the register container

func (*CheckRegister) Register

func (c *CheckRegister) Register(path string, health CommandHealth)

Register can register a command and function

type CommandHealth

type CommandHealth interface {
	Check() error
}

CommandHealth is the interface for register a command checker

Jump to

Keyboard shortcuts

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