Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier is a slack notifier
To use this notifier, you need to setup the slack app permissions: - channels:read - chat:write
When using "pins", you will need permission: "pins:write"
func (*Notifier) PostLiveNote ¶ added in v1.61.0
func (*Notifier) Upload ¶ added in v1.63.0
func (n *Notifier) Upload(upload *types.UploadFile)
Upload is used to upload a file to the configured slack channel. This is a blocking function, it will wait until the file is uploaded.
type NotifyOption ¶
type NotifyOption func(notifier *Notifier)
func OptionContext ¶ added in v1.61.0
func OptionContext(baseCtx context.Context) NotifyOption
func OptionQueueSize ¶ added in v1.61.0
func OptionQueueSize(size int) NotifyOption
type SlackAttachmentCreator ¶
type SlackAttachmentCreator interface {
SlackAttachment() slack.Attachment
}
type SlackBlocksCreator ¶ added in v1.61.0
Click to show internal directories.
Click to hide internal directories.