Documentation
¶
Overview ¶
Package client constructs a configured go-openfga client from resolved config.
Index ¶
Constants ¶
View Source
const DefaultRequestTimeout = 30 * time.Second
DefaultRequestTimeout bounds each HTTP exchange, including reading its body.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures optional client behavior layered on top of the resolved config (e.g. request capture for the TUI).
func WithCapture ¶
WithCapture records every HTTP request/response into rec by wrapping the base transport. Used by the playground's API Logs view; unused by CLI commands.
func WithTimeout ¶
WithTimeout sets the maximum duration of each HTTP exchange. Zero disables the deadline for callers that intentionally use a long-lived endpoint.
Click to show internal directories.
Click to hide internal directories.