RC-EaseProbe 一个优雅的状态检测工具,支持多种协议和通知平台

· Technology

# EaseProbe
EaseProbe is a simple, standalone, and lightweight tool that can do health/status checking, written in Go.

Testing

  • Monkey 动态的改变函数,建议自在测试环境中使用
    比如对 json.MarshlIndent 函数修改
	monkey.Patch(json.MarshalIndent, func(v interface{}, prefix, indent string) ([]byte, error) {
		return nil, fmt.Errorf("error")
	})

Tool

# Go JSON Schema Reflection

yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor

Chi lightweight, idiomatic and composable router for building Go HTTP services

Config

提供本地,在线文件配置文件,并且支持提供目录多个配置文件合并(yq)

Abstraction

Probers -> Channel -> Notification

Channel 维护 Probers 和 Notification 多对多的关系

Comments (0)

    Send comment

    Markdown supported. Please keep comments clean.