Documentation ¶
Index ¶
- type Channel
- type ChannelSender
- func (s *ChannelSender) Channel(ctx context.Context, channelID string) (*Channel, error)
- func (s *ChannelSender) ListChannels(ctx context.Context) ([]Channel, error)
- func (s *ChannelSender) Send(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
- func (s *ChannelSender) ServeMessageAction(w http.ResponseWriter, req *http.Request)
- func (s *ChannelSender) SetReceiver(r notification.Receiver)
- func (s *ChannelSender) TeamID(ctx context.Context) (string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelSender ¶
type ChannelSender struct {
// contains filtered or unexported fields
}
func NewChannelSender ¶
func NewChannelSender(ctx context.Context, cfg Config) (*ChannelSender, error)
func (*ChannelSender) ListChannels ¶
func (s *ChannelSender) ListChannels(ctx context.Context) ([]Channel, error)
ListChannels will return a list of channels visible to the slack bot.
func (*ChannelSender) Send ¶
func (s *ChannelSender) Send(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
func (*ChannelSender) ServeMessageAction ¶ added in v0.29.0
func (s *ChannelSender) ServeMessageAction(w http.ResponseWriter, req *http.Request)
func (*ChannelSender) SetReceiver ¶ added in v0.29.0
func (s *ChannelSender) SetReceiver(r notification.Receiver)
Click to show internal directories.
Click to hide internal directories.