Documentation
¶
Index ¶
Constants ¶
View Source
const PurposePublish = "msg_pub"
View Source
const ReqMsgPub = "msg_pub"
Variables ¶
This section is empty.
Functions ¶
func PublishBasicRequest ¶
Types ¶
type ChanFilter ¶
type ChanFilter struct {
Pattern string
}
type ChanPostHandler ¶
type ChanPostHandler struct {
SvcPub pub.Service
GroupId string
Log *slog.Logger
Channels map[string]time.Time
ChansLock *sync.Mutex
CfgMsgs config.MessagesConfig
}
type Format ¶
type Format struct {
HtmlPolicy *bluemonday.Policy
UriEvtBase string
}
func (Format) Convert ¶
func (f Format) Convert(evt *pb.CloudEvent, subId, subDescr string, mode FormatMode) (tgMsg any)
type FormatMode ¶
type FormatMode int
const ( FormatModeHtml FormatMode = iota FormatModePlain // no html markup, but keep the telegram attachments FormatModeRaw // no html and no attachments )
Click to show internal directories.
Click to hide internal directories.