pubsub

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCPPubSub

func NewGCPPubSub(logger logger.Logger) bindings.InputOutputBinding

NewGCPPubSub returns a new GCPPubSub instance.

Types

type GCPPubSub

type GCPPubSub struct {
	// contains filtered or unexported fields
}

GCPPubSub is an input/output binding for GCP Pub Sub.

func (*GCPPubSub) Close

func (g *GCPPubSub) Close() error

func (*GCPPubSub) GetComponentMetadata

func (g *GCPPubSub) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*GCPPubSub) Init

func (g *GCPPubSub) Init(ctx context.Context, metadata bindings.Metadata) error

Init parses metadata and creates a new Pub Sub client.

func (*GCPPubSub) Invoke

func (*GCPPubSub) Operations

func (g *GCPPubSub) Operations() []bindings.OperationKind

func (*GCPPubSub) Read

func (g *GCPPubSub) Read(ctx context.Context, handler bindings.Handler) error

Jump to

Keyboard shortcuts

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