pubsub

package
v1.0.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 ConfigAdd

func ConfigAdd(path string)

func NewSubscription

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

NewSubscription ..

func NewSubscriptionWithConfigPath

func NewSubscriptionWithConfigPath(ctx context.Context, path string) (*pubsub.Subscription, error)

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 NewTopicWithConfigPath

func NewTopicWithConfigPath(ctx context.Context, path string) (*pubsub.Topic, error)

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