Documentation
¶
Overview ¶
Package trigger is the HTTP interface that starts flow runs:
POST /flows/<flow>/run[?collection=<c>][&wait=<duration>] GET /runs/<id> GET /healthz
Every route but /healthz needs "Authorization: Bearer <token>". The token is checked before the path is looked at, so a caller without it learns nothing about which flows exist. An address that sends ten bad tokens in a minute is answered 429 until the minute ends.
The endpoint speaks plain HTTP, so the token crosses the network in the clear: keep it on loopback, or put a TLS-terminating proxy in front.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoToken = errors.New("triggers need a token")
ErrNoToken is returned by New when the token is empty: triggers without authentication are never offered.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.