Documentation
¶
Index ¶
- type Event
- type Notifier
- type SlackNotifier
- func (s *SlackNotifier) PublishView(userID string, view slack.HomeTabViewRequest, hash string) error
- func (s *SlackNotifier) SendAttachmentMessage(ctx context.Context, attachment slack.Attachment, targetChannel string) error
- func (s *SlackNotifier) SendDialog(ctx context.Context, dialog slack.Dialog, triggerId string) error
- func (s *SlackNotifier) SendMessage(ctx context.Context, message string, targetChannel string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface {
SendMessage(ctx context.Context, message string, targetChannel string) error
SendAttachmentMessage(ctx context.Context, attachment slack.Attachment, targetChannel string) error
SendDialog(ctx context.Context, dialog slack.Dialog, triggerId string) error
PublishView(userID string, view slack.HomeTabViewRequest, hash string) error
}
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
Slack contains Token for authentication with slack and Channel name to send notification to
func NewSlackNotifier ¶
func NewSlackNotifier(log logger.Logger, token string, channel string) *SlackNotifier
func (*SlackNotifier) PublishView ¶
func (s *SlackNotifier) PublishView(userID string, view slack.HomeTabViewRequest, hash string) error
func (*SlackNotifier) SendAttachmentMessage ¶
func (s *SlackNotifier) SendAttachmentMessage(ctx context.Context, attachment slack.Attachment, targetChannel string) error
func (*SlackNotifier) SendDialog ¶
func (*SlackNotifier) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.