Documentation ¶
Overview ¶
Package publisher pubsub.go is the implementation of the function that deal with pubsub messages.
Package publisher provides a simple scheduler implementation to trigger some routine at a given interval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDLQSubscriptions ¶
ListDLQSubscriptions returns a list of all the dead-letter-queue subscriptions present in the projectID provided
Types ¶
type Scheduler ¶
type Scheduler struct { // Ticker is a time.Ticker object Ticker *time.Ticker // Done is a channel to stop the scheduler Done chan struct{} }
Scheduler gather all the necessary fields to run a scheduler
func NewScheduler ¶
NewScheduler creates a new scheduler
type Subscription ¶
type Subscription struct { Done chan struct{} // contains filtered or unexported fields }
Subscription represents a subscription to a pubsub topic.
func NewSubscription ¶
func NewSubscription(subscription *pubsub.Subscription, messages2Pull int) *Subscription
NewSubscription creates a new Subscription.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
metrics
Package main from cmd/metrics/root.go is the CLI implementation to get metrics from GCP.
|
Package main from cmd/metrics/root.go is the CLI implementation to get metrics from GCP. |
pool
Package main cmd/pool/main.go is the entry point of the pool application.
|
Package main cmd/pool/main.go is the entry point of the pool application. |
publisher
Package main is the entry point of the publisher application.
|
Package main is the entry point of the publisher application. |
Click to show internal directories.
Click to hide internal directories.