webhooks

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatedEndpoint

type CreatedEndpoint struct {
	Endpoint store.WebhookEndpoint `json:"endpoint"`
	Token    string                `json:"token"`
}

type EndpointConfig

type EndpointConfig struct {
	WorkflowID string `json:"workflowId"`
	Ref        string `json:"ref,omitempty"`
}

type Enqueuer

type Enqueuer interface {
	EnqueueTriggered(context.Context, string, string, string, string) (store.Run, error)
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(database *store.Store, enqueuer Enqueuer) (*Manager, error)

func (*Manager) Create

func (m *Manager) Create(ctx context.Context, projectID, name, provider, workflowID, ref string) (CreatedEndpoint, error)

func (*Manager) Deliver

func (m *Manager) Deliver(ctx context.Context, endpointID, token, deliveryID, eventType string, payload []byte) (store.RecordedWebhookDelivery, *store.Run, error)

Jump to

Keyboard shortcuts

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