events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	validator *validator.Validator,
	publisher *events.Publisher,
	logger *zap.Logger,
) handler.Handler

Types

type EventRequest

type EventRequest struct {
	ID      string          `json:"id"      validate:"required,max=64"`
	Type    string          `json:"type"    validate:"required,max=64"`
	Payload json.RawMessage `json:"payload" validate:"max=65536"`
}

type Handler

type Handler struct {
	handler.Base
	// contains filtered or unexported fields
}

func (*Handler) Register

func (h *Handler) Register(router fiber.Router)

Jump to

Keyboard shortcuts

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