Documentation
¶
Overview ¶
Package codexquota publishes bounded Codex account quota observations.
Index ¶
- Constants
- func AssetDeclarations() []assets.Declaration
- func DefinitionForVersion(version string) pluginsdk.Definition
- type Config
- type Handler
- func (h *Handler) EndSession(ctx context.Context, request protocol.SessionEndRequest) error
- func (h *Handler) HandleSessionInput(ctx context.Context, request protocol.SessionInputRequest) (protocol.SessionInputResult, error)
- func (h *Handler) Health(_ context.Context) protocol.HealthResult
- func (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error
- func (h *Handler) Shutdown(ctx context.Context) error
- func (h *Handler) StartSession(ctx context.Context, request protocol.SessionStartRequest) error
- type Host
- type Snapshot
- type Window
Constants ¶
View Source
const ( PluginID = "dev.bsbctl.codex-quota" PluginVersion = "0.1.0" AppID = "codex-quota" ChannelSummary = "summary" ChannelPressure = "pressure" ChannelLive = "live" )
Variables ¶
This section is empty.
Functions ¶
func AssetDeclarations ¶
func AssetDeclarations() []assets.Declaration
AssetDeclarations returns the immutable static asset owned by the Codex quota plugin.
func DefinitionForVersion ¶
func DefinitionForVersion(version string) pluginsdk.Definition
DefinitionForVersion binds immutable release metadata into the child handshake.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) EndSession ¶
func (*Handler) HandleSessionInput ¶
func (h *Handler) HandleSessionInput(ctx context.Context, request protocol.SessionInputRequest) (protocol.SessionInputResult, error)
func (*Handler) ReplaceInstances ¶
func (*Handler) StartSession ¶
type Host ¶
type Host interface {
PublishObservation(context.Context, protocol.Observation) error
CompleteSession(context.Context, protocol.CompleteSessionRequest) error
Log(context.Context, protocol.LogNotification) error
}
type Snapshot ¶
type Snapshot = codexusage.Snapshot
type Window ¶
type Window = codexusage.Window
Click to show internal directories.
Click to hide internal directories.