Documentation ¶
Overview ¶
Package slack handles the posting of kills to slack
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client operates as a client to all slack teams and posts killmails to the configured team and channel/group.
type TemplateData ¶
type TemplateData struct { // The raw CREST killmail model. Killmail crest.Killmail // The total value of the kill, as a formatted string with appropriate abbreviations. TotalValue string // IsLoss is true when the kill is a loss to the filter, false otherwise. IsLoss bool // IsSolo is true when the killmail was a solo kill/loss. IsSolo bool }
TemplateData is passed to templates for defining how a slacklib post appears.
Click to show internal directories.
Click to hide internal directories.