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
Click to show internal directories.
Click to hide internal directories.