Documentation
¶
Overview ¶
Package logger 是 cap/larkevent.Handler 的示例插件: 订阅一类或多类 Lark 自定义事件,收到后以 slog 记录。 注入 platform/feishu、platform/lark 的 deps.eventHandlers 使用。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// EventTypes 是 Lark 事件类型字符串(如 drive.file.created_v1),
// 需与 Lark 开发者后台的事件订阅保持一致。
EventTypes []string `json:"eventTypes"`
// LogRaw 为 true 时记录完整事件 JSON(默认只记录类型与上下文摘要)。
LogRaw bool `json:"logRaw,omitempty"`
}
Config 声明本实例订阅的事件类型列表。
Click to show internal directories.
Click to hide internal directories.