Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToolSet ¶ added in v1.60.0
CreateToolSet is used by the tools registry.
Types ¶
type Option ¶ added in v1.65.0
type Option func(*ToolSet)
Option configures an api ToolSet.
func WithAllowPrivateIPs ¶ added in v1.65.0
WithAllowPrivateIPs disables SSRF dial-time protection so the api tool may dial loopback / RFC1918 / link-local addresses. Operators opt in via `allow_private_ips: true` when the configured endpoint legitimately targets internal services. Tests use this to talk to httptest.NewServer.
func WithTimeout ¶ added in v1.65.0
WithTimeout overrides the default HTTP client timeout (see httpclient.DefaultToolHTTPTimeout).
Click to show internal directories.
Click to hide internal directories.