leafGooglePubsub

package module
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 22 Imported by: 0

README

Message-Queue-Google-Pubsub

Documentation

Index

Constants

View Source
const (
	EventPublish = "google_pubsub_publish"
)

Variables

This section is empty.

Functions

func New

func New(options ...Option) (leafMQ.MessageQueue, error)

Types

type Option

type Option interface {
	Apply(o *option)
}

func WithAckDeadline

func WithAckDeadline(AckDeadline time.Duration) Option

func WithAsynchronous

func WithAsynchronous(Asynchronous bool) Option

func WithBufSize

func WithBufSize(BufSize int) Option

func WithFailedDeadline

func WithFailedDeadline(failedDeadline time.Duration) Option

func WithGoogleCredentialPath

func WithGoogleCredentialPath(GoogleCredentialPath string) Option

func WithGoogleProject

func WithGoogleProject(googleProject string) Option

func WithLog

func WithLog(logger leafLogger.Logger) Option

func WithMaxExtensionDeadline

func WithMaxExtensionDeadline(MaxExtensionDeadline time.Duration) Option

func WithMaxOutstandingBytes

func WithMaxOutstandingBytes(MaxOutstandingBytes int) Option

func WithMaxOutstandingMessages

func WithMaxOutstandingMessages(MaxOutstandingMessages int) Option

func WithMaxRetry

func WithMaxRetry(MaxRetry int) Option

func WithNumGoroutines

func WithNumGoroutines(NumGoroutines int) Option

func WithSlackNotification

func WithSlackNotification(notification SlackNotification) Option

func WithSubscription

func WithSubscription(subscription map[string]string) Option

func WithoutSlackNotification

func WithoutSlackNotification() Option

type SlackNotification

type SlackNotification struct {
	Active  bool
	Hook    string
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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