ingester

package
v0.0.0-...-2ad74da Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationToFlowExecution

func NotificationToFlowExecution(ctx context.Context, n *louhi.Notification, ts time.Time) *louhi.FlowExecution

NotificationToFlowExecution converts a Notification to a FlowExecution. Note that, since not all Notifications contain all of the information about the flow, the returned FlowExecution may not be complete.

Types

type Ingester

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

Ingester is used for ingesting Louhi Notifications into a DB.

func NewIngester

func NewIngester(db louhi.DB, g gerrit.GerritInterface, repos []gitiles.GitilesRepo) *Ingester

NewIngester returns an Ingester instance.

func (*Ingester) UpdateFlowFromNotification

func (i *Ingester) UpdateFlowFromNotification(ctx context.Context, n *louhi.Notification, ts time.Time) error

UpdateFlowFromNotification retrieves the FlowExecution from the DB, updates it from the Notifaction, and updates it into the DB.

Jump to

Keyboard shortcuts

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