Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPubsubClient ¶
type IPubsubClient interface {
Topic(topicId string) IPubsubTopic
}
PubsubClient
type IPubsubPublishResult ¶
PublishResult
type IPubsubTopic ¶
type IPubsubTopic interface {
Publish(ctx context.Context, msg *pubsub.Message) IPubsubPublishResult
}
PubsubTopic
type PubsubClient ¶
type PubsubClient struct {
// contains filtered or unexported fields
}
func NewPubsubClient ¶
func NewPubsubClient(ctx context.Context, projectID string) (*PubsubClient, error)
func (*PubsubClient) Topic ¶
func (p *PubsubClient) Topic(topicId string) IPubsubTopic
type PubsubPublishResult ¶
type PubsubPublishResult struct {
*pubsub.PublishResult
}
type PubsubTopic ¶
func (*PubsubTopic) Publish ¶
func (p *PubsubTopic) Publish(ctx context.Context, msg *pubsub.Message) IPubsubPublishResult
Click to show internal directories.
Click to hide internal directories.