Documentation
¶
Overview ¶
Package providerstatusnode provides the compile-time native Harness Node module that fetches and normalizes account usage for configured OAuth model channels (ChatGPT / Codex OAuth and Claude OAuth).
Index ¶
Constants ¶
const (
// UsageCacheTTLMs matches the 3-minute account usage cache budget.
UsageCacheTTLMs = 180_000
)
Variables ¶
This section is empty.
Functions ¶
func DecodeAccountUsage ¶
func DecodeAccountUsage(auth protocol.Authentication, resp protocol.PluginHttpResponse, now time.Time) (protocol.ProviderAccountUsage, error)
DecodeAccountUsage parses and normalizes an upstream OAuth usage HTTP reply.
func EndpointFor ¶
func EndpointFor(auth protocol.Authentication) (protocol.PluginModelAuthEndpoint, bool)
EndpointFor returns the fixed OAuth account usage endpoint for auth.
Types ¶
This section is empty.