gcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 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 PubSubClient

type PubSubClient struct {
	*PubSubClientConfig
	// contains filtered or unexported fields
}

func NewPubSubClient

func NewPubSubClient(config *PubSubClientConfig) (*PubSubClient, error)

func (*PubSubClient) Publish

func (client *PubSubClient) Publish(message string) error

func (*PubSubClient) Subscribe

func (client *PubSubClient) Subscribe(ctx context.Context) (chan string, error)

type PubSubClientConfig

type PubSubClientConfig struct {
	ProjectID      string
	TopicID        string
	SubscriptionID string
}

Jump to

Keyboard shortcuts

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