gcppubsub

package
v0.0.0-...-931ad58 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublisherType = "gcp_pubsub"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL string `mapstructure:"url"`
}

type GCPPubSub

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

func FromConfig

func FromConfig(ctx context.Context, config Config) (*GCPPubSub, error)

func New

func New(ctx context.Context, url string) (*GCPPubSub, error)

func (*GCPPubSub) Name

func (pub *GCPPubSub) Name() string

func (*GCPPubSub) Send

func (pub *GCPPubSub) Send(ctx context.Context, body []byte) error

Jump to

Keyboard shortcuts

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