Documentation
¶
Overview ¶
Package http implements an HTTP-based approver client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Label is a human-friendly name.
Label string
// URL is the approver endpoint.
URL string
// Method overrides HTTP method.
Method string
// Headers adds HTTP headers.
Headers map[string]string
// Timeout is the HTTP timeout.
Timeout time.Duration
}
Client calls external HTTP approvers.
type Request ¶
type Request struct {
// CorrelationID links related requests.
CorrelationID string `json:"correlation_id"`
// Tool is the tool name.
Tool string `json:"tool"`
// Arguments are sanitized tool arguments.
Arguments map[string]any `json:"arguments"`
}
Request is the payload sent to HTTP approvers.
Click to show internal directories.
Click to hide internal directories.