Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventArtifactUploaded = "artifact.uploaded" EventArtifactDeleted = "artifact.deleted" EventArtifactDownloaded = "artifact.downloaded" EventRepoCreated = "repository.created" EventRepoDeleted = "repository.deleted" )
Event types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(db database.Database, log *logger.Logger) *Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(ctx context.Context, repoID, eventType string, payload map[string]any)
Dispatch queues a webhook event for all matching webhooks. repoID can be empty for global events.
func (*Dispatcher) Start ¶
func (d *Dispatcher) Start()
Start begins processing the delivery queue and retry loop.
Click to show internal directories.
Click to hide internal directories.