Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGinEventHandler ¶
func NewGinEventHandler[T any](ginHandler GinEventHandlerFunc[T], eventHandler event.EventHandler[T]) gin.HandlerFunc
NewGinEventHandler function creates a new Gin HTTP handler function that processes incoming JSON data, unmarshals it into an event message, executes business logic, and handles the event using a provided event handler.
Types ¶
type GinEventHandlerFunc ¶
GinEventHandlerFunc is a function that handles a business logic of an event message
Click to show internal directories.
Click to hide internal directories.