event

package
v0.0.0-...-a23f117 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	// GetUrl returns the base path of the event
	GetUrl() string
}

Event is an interface representing an event to be handled

type Exchange

type Exchange interface {
	// PostEvent sends event
	PostEvent(event Event) error
}

Exchange handles event posting

func NewSelfHttpExchange

func NewSelfHttpExchange() Exchange

NewSelfHttpExchange returns an Exchange for posting event to this service itself

type ProjectParticipantUnregistrationEvent

type ProjectParticipantUnregistrationEvent struct {
	SiteUUID string `json:"siteUUID"`
}

ProjectParticipantUnregistrationEvent is triggered when a site is unregistered

func (ProjectParticipantUnregistrationEvent) GetUrl

type ProjectParticipantUpdateEvent

type ProjectParticipantUpdateEvent struct {
	UUID        string `json:"uuid"`
	PartyID     uint   `json:"party_id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

ProjectParticipantUpdateEvent is triggered when a site info is updated

func (ProjectParticipantUpdateEvent) GetUrl

Jump to

Keyboard shortcuts

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