pubsub

package
v0.0.0-...-7544f7c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenPubSub

func ListenPubSub(ctx context.Context, db louhi.DB, local bool, project string, g gerrit.GerritInterface, repos []gitiles.GitilesRepo) error

ListenPubSub starts listening for pub/sub events and pushing them into the given DB. Attempts to create the topic if it does not already exist.

Types

type PubSubSender

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

PubSubSender is used for sending pub/sub messages.

func NewPubSubSender

func NewPubSubSender(ctx context.Context, project string) (*PubSubSender, error)

NewPubSubSender returns a pub/sub notification sender. Does not attempt to create the topic.

func (*PubSubSender) Send

Send sends a pub/sub notification and blocks until the message is sent.

Jump to

Keyboard shortcuts

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