Documentation
¶
Index ¶
- type Slack
- func (s *Slack) Debug(msg string, args ...any)
- func (s *Slack) Error(msg string, args ...any)
- func (s *Slack) Info(msg string, args ...any)
- func (s *Slack) Name() string
- func (s *Slack) Post(channel string, message string, attachments []*common.Attachment, ...) error
- func (t *Slack) Start(wg *sync.WaitGroup)
- func (s *Slack) Warn(msg string, args ...any)
- type SlackButtonValue
- type SlackChannel
- type SlackCompleteUploadExternalResponse
- type SlackFile
- type SlackFileResponseFull
- type SlackImageBlock
- type SlackMessage
- type SlackOptions
- type SlackRichTextQuote
- type SlackRichTextQuoteElement
- type SlackUploadURLExternalResponse
- type SlackUser
- type Telegram
- type TelegramOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func NewSlack ¶
func NewSlack(options SlackOptions, observability *common.Observability, processors *common.Processors) *Slack
type SlackButtonValue ¶ added in v0.1.0
type SlackChannel ¶ added in v0.2.0
type SlackChannel struct {
// contains filtered or unexported fields
}
func (*SlackChannel) ID ¶ added in v0.2.0
func (sc *SlackChannel) ID() string
type SlackCompleteUploadExternalResponse ¶ added in v0.1.0
type SlackCompleteUploadExternalResponse struct { Files []slack.FileSummary `json:"files"` slack.SlackResponse }
type SlackFileResponseFull ¶ added in v0.1.0
type SlackImageBlock ¶ added in v0.1.0
type SlackImageBlock struct { Type slack.MessageBlockType `json:"type"` SlackFile *SlackFile `json:"slack_file"` AltText string `json:"alt_text"` BlockID string `json:"block_id,omitempty"` Title *slack.TextBlockObject `json:"title,omitempty"` }
func (SlackImageBlock) BlockType ¶ added in v0.1.0
func (s SlackImageBlock) BlockType() slack.MessageBlockType
SlackImageBlock
type SlackMessage ¶ added in v0.2.0
type SlackMessage struct {
// contains filtered or unexported fields
}
func (*SlackMessage) ID ¶ added in v0.2.0
func (sm *SlackMessage) ID() string
func (*SlackMessage) User ¶ added in v0.2.0
func (sm *SlackMessage) User() common.User
func (*SlackMessage) Visible ¶ added in v0.2.0
func (sm *SlackMessage) Visible() bool
type SlackOptions ¶
type SlackRichTextQuote ¶
type SlackRichTextQuote struct { Type slack.RichTextElementType `json:"type"` Elements []*SlackRichTextQuoteElement `json:"elements"` }
func (SlackRichTextQuote) RichTextElementType ¶
func (r SlackRichTextQuote) RichTextElementType() slack.RichTextElementType
SlackRichTextQuote
type SlackRichTextQuoteElement ¶
type SlackRichTextQuoteElement struct { Type slack.RichTextElementType `json:"type"` Text string `json:"text,omitempty"` UserID string `json:"user_id,omitempty"` }
func (SlackRichTextQuoteElement) RichTextElementType ¶
func (r SlackRichTextQuoteElement) RichTextElementType() slack.RichTextElementType
type SlackUploadURLExternalResponse ¶ added in v0.1.0
type SlackUploadURLExternalResponse struct { UploadURL string `json:"upload_url"` FileID string `json:"file_id"` slack.SlackResponse }
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func NewTelegram ¶
func NewTelegram(options TelegramOptions, observability *common.Observability, processors *common.Processors) *Telegram
Click to show internal directories.
Click to hide internal directories.