go get
sailhouse
package has all the goodness in it.
SailhouseClient
struct which holds all the methods for interacting with the Sailhouse platform.
Provided you have generated a token, you can create a client easily with sailhouse.NewSailhouseClient(...)
Publish(...)
method on it for easily sending data to a given topic
data
arg must be able to be marshalled into JSON via json.Marshal
. If this fails, it will return an error, and the event will not be sent.
GetEvents(...)
method for requesting the events sent to a given subscription for a topic.