integrations

package
v0.120.24 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError

type AuthError interface {
	error

	StatusCode() int
}

func NewAuthError

func NewAuthError(err error, statusCode int) AuthError

type Integration

type Integration interface {
	GetId() string
	Actions() []string
	ActionHandler(action string) any

	// GetWebhooks returns a list of webhooks that the integration supports.
	GetWebhooks() []IntegrationWebhook
}

type IntegrationWebhook

type IntegrationWebhook interface {
	// Returns the method for this webhook (GET, POST, etc)
	GetMethod() string

	// Returns the default API paths that this webhook listens on.
	GetDefaultPaths() string

	// ValidatePayload validates the payload of the webhook request. Different webhooks have different
	// signature validation strategies, so this method is implemented by each integration differently.
	ValidatePayload(r *http.Request) AuthError

	// Returns the action that this webhook triggers.
	GetAction() types.Action

	// Returns the data that was sent as part of this webhook.
	GetData(r *http.Request) (map[string]interface{}, error)
}

Directories

Path Synopsis
metrics
prometheus
Package prometheus registers the Hatchet Prometheus collectors (global and tenant-labeled task metrics, pub/sub, database pool), gates tenant series on entitlement, and serves the registry over HTTP.
Package prometheus registers the Hatchet Prometheus collectors (global and tenant-labeled task metrics, pub/sub, database pool), gates tenant series on entitlement, and serves the registry over HTTP.
shared

Jump to

Keyboard shortcuts

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