pubsub

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQS    = "sqs"
	SNS    = "sns"
	KAFKA  = "kafka"
	NATS   = "nats"
	PUBSUB = "pubsub"
)

Queue types

Variables

This section is empty.

Functions

func NewSubscription

func NewSubscription(ctx context.Context) (*pubsub.Subscription, error)

NewSubscription ..

func NewSubscriptionWithOptions

func NewSubscriptionWithOptions(ctx context.Context, o *Options) (*pubsub.Subscription, error)

NewSubscriptionWithOptions ..

func NewTopic

func NewTopic(ctx context.Context) (*pubsub.Topic, error)

NewTopic ..

func NewTopicWithOptions

func NewTopicWithOptions(ctx context.Context, o *Options) (*pubsub.Topic, error)

NewTopicWithOptions start a new topic for send message

Types

type Options

type Options struct {
	Resource string
	Type     string
	Region   string
}

Options ..

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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