Documentation ¶
Index ¶
- type DefaultSlackMessageTheme
- func (t *DefaultSlackMessageTheme) FormatError(errorMessage string) string
- func (t *DefaultSlackMessageTheme) FormatStartCommand(data *models.StartCommandReport) string
- func (t *DefaultSlackMessageTheme) FormatStatusCommand(data *models.StatusCommandReport) string
- func (t *DefaultSlackMessageTheme) FormatStopCommand(data *models.StopCommandReport) string
- type SlackMessageTheme
- type SlackThemeTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSlackMessageTheme ¶
type DefaultSlackMessageTheme struct {
// contains filtered or unexported fields
}
DefaultSlackMessageTheme - the basic UI theme for messages that go back from us to Slack users
func NewDefaultSlackMessageTheme ¶
func NewDefaultSlackMessageTheme(ctx context.Context) *DefaultSlackMessageTheme
func (*DefaultSlackMessageTheme) FormatError ¶
func (t *DefaultSlackMessageTheme) FormatError(errorMessage string) string
func (*DefaultSlackMessageTheme) FormatStartCommand ¶
func (t *DefaultSlackMessageTheme) FormatStartCommand(data *models.StartCommandReport) string
func (*DefaultSlackMessageTheme) FormatStatusCommand ¶
func (t *DefaultSlackMessageTheme) FormatStatusCommand(data *models.StatusCommandReport) string
func (*DefaultSlackMessageTheme) FormatStopCommand ¶
func (t *DefaultSlackMessageTheme) FormatStopCommand(data *models.StopCommandReport) string
type SlackMessageTheme ¶
type SlackMessageTheme interface { FormatStartCommand(data *models.StartCommandReport) string FormatStopCommand(data *models.StopCommandReport) string FormatStatusCommand(data *models.StatusCommandReport) string FormatError(errorMessage string) string }
SlackMessageTheme an interface each theme must to conform to
type SlackThemeTemplate ¶
type SlackThemeTemplate struct { Text string `json:"text"` Attachments []slack.Attachment `json:"attachments"` }
Click to show internal directories.
Click to hide internal directories.