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) ListenResponse() <-chan *notification.MessageResponse
- func (s *ChannelSender) ListenStatus() <-chan *notification.MessageStatus
- func (s *ChannelSender) Send(ctx context.Context, msg notification.Message) (*notification.MessageStatus, error)
- func (s *ChannelSender) Status(ctx context.Context, id, providerID string) (*notification.MessageStatus, 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) ListenResponse ¶
func (s *ChannelSender) ListenResponse() <-chan *notification.MessageResponse
func (*ChannelSender) ListenStatus ¶
func (s *ChannelSender) ListenStatus() <-chan *notification.MessageStatus
func (*ChannelSender) Send ¶
func (s *ChannelSender) Send(ctx context.Context, msg notification.Message) (*notification.MessageStatus, error)
func (*ChannelSender) Status ¶
func (s *ChannelSender) Status(ctx context.Context, id, providerID string) (*notification.MessageStatus, error)
Click to show internal directories.
Click to hide internal directories.