gcp

package
v0.0.0-...-6259541 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubsubForwarder

type PubsubForwarder struct {
	SelfAddressedOnly bool // only accept messages that are address to this bot
	// contains filtered or unexported fields
}

EventForwarder creates a new slackgw.SlackRTMHandler that forwards the specified events

func NewPubsubForwarder

func NewPubsubForwarder(cl *pubsub.Client, topic string, events ...int64) *PubsubForwarder

hctx := context.Background() cl, err := pubsub.NewClient(hctx, projectID)

if err != nil {
	return err
}

NewPubsubForwarder(cl, ....)

func (*PubsubForwarder) Handle

func (f *PubsubForwarder) Handle(ctx *slackgw.RTMCtx) error
type SlackLink struct {
	Text string
	URL  string
}

Jump to

Keyboard shortcuts

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