googlepubsub

package
v0.0.0-...-0ade494 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 GooglePubSubProducer

type GooglePubSubProducer struct {
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer(destinationConfig interface{}, o common.Opts) (*GooglePubSubProducer, error)

NewProducer creates a producer based on destination config

func (*GooglePubSubProducer) Close

func (producer *GooglePubSubProducer) Close() error

Close closes a given producer

func (*GooglePubSubProducer) Produce

func (producer *GooglePubSubProducer) Produce(jsonData json.RawMessage, _ interface{}) (statusCode int, respStatus, responseMessage string)

type PubsubClient

type PubsubClient struct {
	// contains filtered or unexported fields
}

type TestConfig

type TestConfig struct {
	Endpoint string `json:"endpoint"`
}

Jump to

Keyboard shortcuts

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