Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PublishFormatJSON is the JSON format. PubSubPublishFormatJSON = "json" // PublishFormatAvro is the Avro format. PubSubPublishFormatAvro = "avro" )
PublishFormat is the format of the message to publish.
Variables ¶
View Source
var Set = wire.NewSet( NewMongoDB, NewPubSub, NewMetrics, )
Set is a Wire provider set that provides configuration.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type PubSub ¶ added in v0.0.2
type PubSub struct { // ProjectID is the id of the Google Cloud project to publish messages to. ProjectID string `env:"PROJECT_ID"` // TopicID is the id of the topic to publish messages to. TopicID string `env:"TOPIC_ID"` // PublishFormat is the format of the message to publish. // Supported format are: json, avro. PublishFormat string `env:"PUBLISH_FORMAT, default=json"` }
Click to show internal directories.
Click to hide internal directories.