flowdock

package
v0.2.1-0...-0398299 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENDPOINT = "https://api.flowdock.com/v1/messages/team_inbox/"
)

Variables

View Source
var (
	// Required default client settings
	Token       = ""
	Source      = ""
	FromAddress = ""

	// Optional default client settings
	FromName = ""
	ReplyTo  = ""
	Project  = ""
	Link     = ""
	Tags     = []string{}
)

Functions

func Inbox

func Inbox(subject, content string) error

Types

type Client

type Client struct {
	// Required
	Token       string
	Source      string
	FromAddress string
	Subject     string
	Content     string

	// Optional
	FromName string
	ReplyTo  string
	Project  string
	Link     string
	Tags     []string
}

func (*Client) Inbox

func (c *Client) Inbox(subject, content string) error

type Flowdock

type Flowdock struct {
	Token   string `yaml:"token,omitempty"`
	Source  string `yaml:"source,omitempty"`
	Tags    string `yaml:"tags,omitempty"`
	Started bool   `yaml:"on_started,omitempty"`
	Success bool   `yaml:"on_success,omitempty"`
	Failure bool   `yaml:"on_failure,omitempty"`
}

func (*Flowdock) Send

func (f *Flowdock) Send(context *model.Request) error

Jump to

Keyboard shortcuts

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