plugin

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Version  int    `json:"version,omitempty"`
	Emitter  string `json:"emitter,omitempty"`
	Receiver string `json:"receiver,omitempty"`
	Body     string `json:"body"`
}

func NewInput

func NewInput(emitter, receiver, body string) Input

func (Input) JSON

func (i Input) JSON() string

type Plugin

type Plugin struct {
	Image string

	RunOnlyOnChannels       bool
	RunOnlyOnDirectMessages bool
	RunOnlyOnMentions       bool
	// contains filtered or unexported fields
}

func New

func New(image string, environment map[string]string) (*Plugin, error)

func (*Plugin) Run

func (p *Plugin) Run(input Input) (string, string, error)

func (*Plugin) Stop

func (p *Plugin) Stop() error

Jump to

Keyboard shortcuts

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