subscriptions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	subscriptionsSvc *subscriptions.Service,
	validator *validator.Validator,
) handler.Handler

Types

type Handler

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

func (*Handler) Register

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

type Subscription

type Subscription struct {
	UUID   string               `json:"uuid"             validate:"required,uuid"`
	URL    string               `json:"url"              validate:"required,https_url,max=256"`
	Secret privacy.HiddenString `json:"secret,omitempty" validate:"omitempty,max=256"`
	Events []string             `json:"events"           validate:"required,min=1,dive,required,max=32"`
}

Jump to

Keyboard shortcuts

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