Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeishuHook ¶
FeishuHook 飞书通知钩子示例 使用方式:log.AddHook(&hooks.FeishuHook{WebhookURL: "your-webhook-url"})
type MockFeishuHook ¶
type MockFeishuHook struct {
Messages []string // 保存收到的消息
}
MockFeishuHook 模拟飞书钩子(用于测试,不实际发送)
func (*MockFeishuHook) Levels ¶
func (h *MockFeishuHook) Levels() []zapcore.Level
Click to show internal directories.
Click to hide internal directories.