Documentation
¶
Overview ¶
Package opencodego reads OpenCode Go subscription windows.
Index ¶
Constants ¶
View Source
const ( ProviderID = "opencode-go" Endpoint = "https://opencode.ai/zen/go/v1/usage" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct{ Transport http.RoundTripper }
Reader uses the supplied transport or http.DefaultTransport. It never acquires credentials.
func (Reader) Read ¶
func (r Reader) Read(ctx context.Context, credential usage.Credential) (wire.AccountUsageResponse, error)
Read observes the subscription addressed by the caller's effective API key.
Click to show internal directories.
Click to hide internal directories.