Documentation
¶
Overview ¶
Package httpexec is a reference HTTP need executor for the Archon need protocol.
It turns a need payload {method,url,headers,body,timeout} into an upstream HTTP call and classifies failures so the bus can redeliver transient errors while permanent poison is acked.
Part of the Archon open-source toolkit: https://github.com/diogoX451/archon-oss
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandNeedSubjects ¶
ExpandNeedSubjects ensures "archon.need.http.>" also covers "archon.need.http".
func FailurePayload ¶
FailurePayload builds a structured error for the orchestrator when upstream cannot be reached (after best-effort webhook of failure).
Types ¶
type Request ¶
type Request struct {
Method string `json:"method"`
URL string `json:"url"`
Headers map[string]string `json:"headers"`
Body json.RawMessage `json:"body"`
// Timeout is seconds; 0 → 30s.
Timeout int `json:"timeout"`
}
Request is the need payload for type "http".
func ParseRequest ¶
func ParseRequest(payload json.RawMessage) (Request, error)
ParseRequest unmarshals and validates a need payload.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
http-executor
command
Reference HTTP need executor for the Archon need protocol.
|
Reference HTTP need executor for the Archon need protocol. |