Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublishRequest ¶
type PublishResponse ¶
type PublishResponse struct { }
type StreamService ¶
type StreamService struct {
// contains filtered or unexported fields
}
func NewStreamService ¶
func NewStreamService(token string) *StreamService
func (*StreamService) Publish ¶
func (t *StreamService) Publish(request *PublishRequest) (*PublishResponse, error)
Publish a message to the stream. Specify a topic to group messages for a specific topic.
func (*StreamService) Subscribe ¶
func (t *StreamService) Subscribe(request *SubscribeRequest) (*SubscribeResponse, error)
Subscribe to messages for a given topic.
type SubscribeRequest ¶
type SubscribeRequest struct { // The topic to subscribe to Topic string `json:"topic"` }
type SubscribeResponse ¶
Click to show internal directories.
Click to hide internal directories.