themes

package
v0.0.0-...-52be0da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL