Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseProducer ¶
func CloseProducer(producer interface{}) error
CloseProducer closes a given producer
Types ¶
type Config ¶
type Config struct { Credentials string `json:"credentials"` ProjectId string `json:"projectId"` EventToTopicMap []map[string]string `json:"eventToTopicMap"` TestConfig TestConfig `json:"testConfig"` }
type PubsubClient ¶
type PubsubClient struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(destinationConfig interface{}, o Opts) (*PubsubClient, error)
NewProducer creates a producer based on destination config
type TestConfig ¶
type TestConfig struct {
Endpoint string `json:"endpoint"`
}
Click to show internal directories.
Click to hide internal directories.