You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package health
|
|
|
|
// Error 健康检查错误
|
|
type Error struct {
|
|
Message string
|
|
}
|
|
|
|
// NewError 创建新错误
|
|
func NewError(message string) error {
|
|
return &Error{
|
|
Message: message,
|
|
}
|
|
}
|
|
|
|
// Error 实现error接口
|
|
func (e *Error) Error() string {
|
|
return e.Message
|
|
}
|
|
|