package
0.0.0-20200109191904-8d1786a9f689
Repository: https://github.com/joincivil/go-common.git
Documentation: pkg.go.dev
# Functions
NewGooglePubSub returns a new GooglePubSub struct.
NewPubSubClient creates a new pubsub client via Google project ID.
NewWorkers configures and returns a new Workers struct.
# Structs
GooglePubSub is a wrapper around handling for Google Pub/Sub.
GooglePubSubMsg represents a messages to be published.
SubscribeConfig is a config for the wrapper around a Google Pubsub Subscription.
Workers controls the events workers that handles incoming pubsub events.
WorkersConfig configures the governance event pubsub workers.
# Interfaces
EventHandler is an interface to a governance event handler.