messaging

package
v0.0.0-...-71861b7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Topic          string
	SubscriptionID string
	Value          []byte
}

type MessageClient

type MessageClient interface {
	Publish(ctx context.Context, message Message)
}

type PubSubClient

type PubSubClient struct {
	C *pubsub.Client
}

func NewPubsubClient

func NewPubsubClient(ctx context.Context, projectID string) (*PubSubClient, error)

func (*PubSubClient) Publish

func (p *PubSubClient) Publish(ctx context.Context, message Message)

Publish is the implementation of MessageClient interface for google PubSub

Jump to

Keyboard shortcuts

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