Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PubSubClient *pubsub.Client
PubSubClient -_-
Functions ¶
func DecodeJSONEvent ¶ added in v0.3.1
func DecodeJSONEvent(m Message, dst interface{}) errors.ErouskaError
DecodeJSONEvent Decodes and validates PubSub message into given interface.
Types ¶
type EventPublisher ¶
EventPublisher is an abstraction over PubSub
type Message ¶
type Message struct {
Data []byte `json:"data"`
}
Message is the payload of a Pub/Sub event.
type MockClient ¶
type MockClient struct{}
MockClient NOOP PubSub client.
func (MockClient) Publish ¶
func (c MockClient) Publish(topic string, msg interface{}) error
Publish Publish message to some topic.
Click to show internal directories.
Click to hide internal directories.