package
Version:
v0.0.0-...-e86f03a
Opens a new window with list of versions in this module.
Published: Feb 3, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
func NewNotifier(opts ...Option) notifier.Notifier
type Content struct {
Text string `json:"text"`
}
type Message interface {
Body() map[string]interface{}
}
Message interface
const (
MsgTypeText MsgType = "text"
MsgTypePost MsgType = "post"
MsgTypeImage MsgType = "image"
MsgTypeShareChat MsgType = "share_chat"
MsgTypeInteractive MsgType = "interactive"
)
MsgType
func Logger(logger notifier.Logger) Option
Logger 日志记录器
type TextMessage struct {
MsgType MsgType `json:"msg_type"`
Content Content `json:"content"`
}
func (*TextMessage) Body ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.