Files
webhooker/internal/database/model_entrypoint.go
clawbot 37b59f8822
All checks were successful
check / check (push) Successful in 3m14s
Remove inbound request signature verification (closes #279)
2026-08-24 03:25:09 +02:00

21 lines
605 B
Go

package database
// Entrypoint represents an inbound URL endpoint that feeds into a webhook
type Entrypoint struct {
BaseModel
WebhookID string `gorm:"type:uuid;not null" json:"webhookId"`
// Path is the URL path for this entrypoint. It is the
// entrypoint's only credential: possession of the UUID
// authorises submission, so the receiver checks nothing else
// about the sender.
Path string `gorm:"uniqueIndex;not null" json:"path"`
Description string `json:"description"`
Active bool `gorm:"default:true" json:"active"`
// Relations
Webhook Webhook `json:"webhook,omitzero"`
}