slack

package
v0.0.0-...-ef075dc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

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
}

func NewClient

func NewClient(token, channel string) Client

func (Client) Send

func (c Client) Send(msgs []Message)

type Message

type Message struct {
	Username string

	Fallback string
	Text     string

	Author     string
	AuthorLink string
	AuthorIcon string

	ImageUrl     string
	ProviderName string
	Color        string

	Date int64
}

func NewMessage

func NewMessage(provider string, username string) *Message

func (Message) SlackMessageParams

func (m Message) SlackMessageParams() slack.PostMessageParameters

type Sender

type Sender interface {
	Send(msgs []Message)
}

Jump to

Keyboard shortcuts

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