Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewSubscription(ctx context.Context) (*pubsub.Subscription, error)
- func NewSubscriptionWithConfigPath(ctx context.Context, path string) (*pubsub.Subscription, error)
- func NewSubscriptionWithOptions(ctx context.Context, o *Options) (*pubsub.Subscription, error)
- func NewTopic(ctx context.Context) (*pubsub.Topic, error)
- func NewTopicWithConfigPath(ctx context.Context, path string) (*pubsub.Topic, error)
- func NewTopicWithOptions(ctx context.Context, o *Options) (*pubsub.Topic, error)
- type Options
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 creates a subscription.
func NewSubscriptionWithConfigPath ¶
NewSubscriptionWithConfigPath return a subscription with options from config path.
func NewSubscriptionWithOptions ¶
NewSubscriptionWithOptions return a subscription with options from config path.
func NewTopicWithConfigPath ¶
NewTopicWithConfigPath start a new topic for sending messages with options from config path.
Types ¶
type Options ¶
Options represents pubsub client options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
Click to show internal directories.
Click to hide internal directories.