flock

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flock

type Flock struct {
	Url string
}

Flock handler implements handler.Handler interface, Notify event to Flock channel

func (*Flock) Init

func (f *Flock) Init(c *config.Config) error

Init prepares Flock configuration

func (*Flock) ObjectCreated

func (f *Flock) ObjectCreated(obj interface{})

func (*Flock) ObjectDeleted

func (f *Flock) ObjectDeleted(obj interface{})

func (*Flock) ObjectUpdated

func (f *Flock) ObjectUpdated(oldObj, newObj interface{})

type FlockMessage

type FlockMessage struct {
	Notification string                    `json:"notification"`
	Text         string                    `json:"text"`
	Attachements []FlockMessageAttachement `json:"attachments"`
}

type FlockMessageAttachement

type FlockMessageAttachement struct {
	Title string                       `json:"title"`
	Color string                       `json:"color"`
	Views FlockMessageAttachementViews `json:"views"`
}

type FlockMessageAttachementViews

type FlockMessageAttachementViews struct {
	Flockml string `json:"flockml"`
}

Jump to

Keyboard shortcuts

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