listener

package
v0.0.0-...-4d0e586 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package listener listens to Gerrit events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

Listener fetches and process messages from the subscriptions configured in the settings.

func NewListener

func NewListener(psClient *pubsub.Client, sch scheduler) *Listener

NewListener constructs a Listener.

func (*Listener) Run

func (l *Listener) Run(ctx context.Context)

Run continuously evaluates the listener settings and manages workers for each of the subscriptions configured.

Jump to

Keyboard shortcuts

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