slack

package
v0.0.0-...-8803770 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 11 Imported by: 0

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.

func NewClient

func NewClient(cfg *config.Configuration) (client *Client, err error)

func (*Client) Recieve

func (client *Client) Recieve(payload redisq.Payload)

Recieve kills from RedisQ on here.

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.

Jump to

Keyboard shortcuts

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