controller

package
v0.5.0-rc-5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventController

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

EventController handles HTTP requests for events.

func NewEventController

func NewEventController(repo *store.EventRepository, tcpServer *server.TcpEventServer) *EventController

NewEventController creates a new EventController.

func (*EventController) AddEventToAggregate

func (ctrl *EventController) AddEventToAggregate(c *gin.Context)

AddEventToAggregate handles the addition of events to a given aggregate ID.

func (*EventController) GetEventsForAggregate

func (ctrl *EventController) GetEventsForAggregate(c *gin.Context)

GetEventsForAggregate handles the retrieval of events for a given aggregate ID.

func (*EventController) GetEventsSince

func (ctrl *EventController) GetEventsSince(c *gin.Context)

GetEventsSince handles the retrieval of events since a given event ID with a limit.

Jump to

Keyboard shortcuts

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