// CheckAndSetDefaults checks values and sets defaults
CheckAndSetDefaults checks values and sets defaults
// CheckAndSetDefaults checks values and sets defaults
func (h HeartbeatMode) CheckAndSetDefaults() error {
	switch h {
	case HeartbeatModeNode, HeartbeatModeProxy, HeartbeatModeAuth, HeartbeatModeKube, HeartbeatModeApp, HeartbeatModeDB:
		return nil
	default:
		return trace.BadParameter("unrecognized mode")
	}
}
func ( h HeartbeatMode ) CheckAndSetDefaults ( ) error { switch h { case HeartbeatModeNode , HeartbeatModeProxy , HeartbeatModeAuth , HeartbeatModeKube , HeartbeatModeApp , HeartbeatModeDB : return nil default : return trace . BadParameter ( " " ) } }
CheckAndSetDefaults checks values and sets defaults
CheckAndSetDefaults checks values and sets defaults