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

Source Files