messages

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package messages contains the messages used by the reminder service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntityReminderMessage

func NewEntityReminderMessage(providerId uuid.UUID, entityID uuid.UUID, projectID uuid.UUID) (*message.Message, error)

NewEntityReminderMessage creates a new repo reminder message

Types

type EntityReminderEvent

type EntityReminderEvent struct {
	// Project is the project that the event is relevant to
	Project uuid.UUID `json:"project"`
	// ProviderID is the provider of the repository
	ProviderID uuid.UUID `json:"provider"`
	// EntityID is the entity id of the repository to be reconciled
	EntityID uuid.UUID `json:"entity_id"`
}

EntityReminderEvent is an event that is published by the reminder service to trigger repo reconciliation

func EntityReminderEventFromMessage

func EntityReminderEventFromMessage(msg *message.Message) (*EntityReminderEvent, error)

EntityReminderEventFromMessage creates a new repo reminder event from a message

Jump to

Keyboard shortcuts

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