Documentation ¶
Index ¶
- func Creator(value interface{}) util.PubSubClientCreator
- type Client
- func (c *Client) CreateSubscription(ctx context.Context, id string, topic util.PubSubTopic) (util.PubSubSubscription, error)
- func (c *Client) CreateTopic(ctx context.Context, id string) (util.PubSubTopic, error)
- func (c *Client) SubscriptionInProject(id, projectId string) util.PubSubSubscription
- func (c *Client) Topic(id string) util.PubSubTopic
- type ClientData
- type CreatorData
- type Message
- type MessageData
- type PublishResult
- type PublishResultData
- type Subscription
- type SubscriptionData
- type Topic
- type TopicData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Creator ¶
func Creator(value interface{}) util.PubSubClientCreator
Types ¶
type Client ¶
type Client struct {
Data ClientData
}
func (*Client) CreateSubscription ¶
func (c *Client) CreateSubscription(ctx context.Context, id string, topic util.PubSubTopic) (util.PubSubSubscription, error)
func (*Client) CreateTopic ¶
func (*Client) SubscriptionInProject ¶
func (c *Client) SubscriptionInProject(id, projectId string) util.PubSubSubscription
type ClientData ¶
type ClientData struct { SubscriptionData SubscriptionData CreateSubErr error TopicData TopicData CreateTopicErr error }
type CreatorData ¶
type CreatorData struct { ClientCreateErr error ClientData ClientData }
type MessageData ¶
type PublishResult ¶
type PublishResult struct {
Data PublishResultData
}
func (*PublishResult) Get ¶
func (r *PublishResult) Get(ctx context.Context) (serverID string, err error)
func (*PublishResult) Ready ¶
func (r *PublishResult) Ready() <-chan struct{}
type PublishResultData ¶
type Subscription ¶
type Subscription struct {
Data SubscriptionData
}
func (*Subscription) ID ¶
func (s *Subscription) ID() string
func (*Subscription) Receive ¶
func (s *Subscription) Receive(ctx context.Context, f func(context.Context, util.PubSubMessage)) error
type SubscriptionData ¶
Click to show internal directories.
Click to hide internal directories.