slacksub

package
v0.0.0-...-5066889 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

type Subscriber struct {
	Client          *pubsub.Client
	Done            chan struct{}
	HTTPClient      *http.Client
	MessageCallback func(*slack.MessageEvent) error
	Msgch           chan *pubsub.Message
	SlackgwURL      string
	AuthToken       string
	Topic           string
}

func New

func New(cl *pubsub.Client, topic, slackgwURL, authtoken string) *Subscriber

func (*Subscriber) Close

func (sub *Subscriber) Close()

func (*Subscriber) Reply

func (sub *Subscriber) Reply(ch, s string) error

func (*Subscriber) Run

func (sub *Subscriber) Run()

Jump to

Keyboard shortcuts

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