pubsub_client

package
v0.0.0-...-be94382 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 3 Imported by: 0

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

type IPubsubPublishResult interface {
	Get(ctx context.Context) (msgID string, err error)
}

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
}

func (*PubsubPublishResult) Get

func (p *PubsubPublishResult) Get(ctx context.Context) (msgID string, err error)

type PubsubTopic

type PubsubTopic struct {
	*pubsub.Topic
}

func (*PubsubTopic) Publish

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL