slack

package module
v0.0.0-...-d72b084 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2015 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Fallback string `json:"fallback,omitempty"`

	Pretext string `json:"pretext,omitempty"`

	Color string `json:"color,omitempty"`

	AuthorName string `json:"author_name,omitempty"`
	AuthorLink string `json:"author_link,omitempty"`
	AuthorIcon string `json:"author_icon,omitempty"`

	Title     string `json:"title,omitempty"`
	TitleLink string `json:"title_link,omitempty"`

	Text string `json:"text,omitempty"`

	Fields []Field `json:"fields,omitempty"`

	ImageUrl string `json:"image_url,omitempty"`
}

Attachment struct

type Field

type Field struct {
	Title string `json:"title,omitempty"`
	Value string `json:"value,omitempty"`
	Short bool   `json:"short,omitempty"`
}

Field struct

type Incoming

type Incoming struct {
	WebHookURL string
}

func (*Incoming) Post

func (s *Incoming) Post(payload Payload) error

Post method

type Payload

type Payload struct {
	Attachments []Attachment `json:"attachments"`
}

Payload struct

Jump to

Keyboard shortcuts

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