Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key string Project string Enabled bool Timeout int BulkPublishConcurrency int Retries int }
Config is the config for pubsub
type Service ¶
type Service interface { PublishMessage(ctx context.Context, topic string, data []byte, waitSync bool) (*goPubSub.PublishResult, error) BulkPublishMessages(ctx context.Context, topic string, data [][]byte, waitSync bool) SubscribeMessages(ctx context.Context, subscribe string, subscribeFunction messageQueue.SubscribeFunction) error Close() }
Service is the interface implemented by a pubsub service
func NewPubSubService ¶
NewPubSubService build and returns an pubsub service handler
Click to show internal directories.
Click to hide internal directories.