Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ERR_EXT is the error extension tacked onto scopes ERR_EXT = "-err" // LN_FMT is the formatting of each log LN_FMT = "%-35s %s" )
Functions ¶
func SplitBySpaces ¶
SplitBySpaces returns a string slice of words in s
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the store for config data
type Logger ¶
type Logger interface { EnableAggregation(string) KV(string, interface{}) Logger Tag(string, string) Log(string) Logger Error(error) Logger Fatal(error) }
Logger is the logging interface
type SlackAttachment ¶
type SlackAttachment struct { Title string `json:"title"` TitleLink string `json:"title_link"` Text string `json:"text"` }
SlackAttachment is optionally attached to SlackResponses
type SlackResponse ¶
type SlackResponse struct { ResponseType string `json:"response_type"` Text string `json:"text"` Attachments []SlackAttachment `json:"attachments"` }
SlackResponse is the response returned as JSON
Click to show internal directories.
Click to hide internal directories.