Documentation
¶
Index ¶
- type SlackChannel
- func (c *SlackChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error)
- func (c *SlackChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
- func (c *SlackChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error
- func (c *SlackChannel) Start(ctx context.Context) error
- func (c *SlackChannel) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackChannel ¶
type SlackChannel struct {
*channels.BaseChannel
// contains filtered or unexported fields
}
func NewSlackChannel ¶
func NewSlackChannel(cfg config.SlackConfig, messageBus *bus.MessageBus) (*SlackChannel, error)
func (*SlackChannel) ReactToMessage ¶
func (c *SlackChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error)
ReactToMessage implements channels.ReactionCapable. It adds an "eyes" (👀) reaction to the inbound message and returns an undo function that removes the reaction.
func (*SlackChannel) Send ¶
func (c *SlackChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
func (*SlackChannel) SendMedia ¶
func (c *SlackChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error
SendMedia implements the channels.MediaSender interface.
Click to show internal directories.
Click to hide internal directories.