Documentation
¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) CountAuthKeys(ctx context.Context) (int64, error)
- func (s *Store) CountAuthKeysByRole(ctx context.Context, role string) (int64, error)
- func (s *Store) CountCodex(ctx context.Context) (int64, error)
- func (s *Store) CountCodexFiltered(ctx context.Context, filter db.CredentialFilterParams) (int64, error)
- func (s *Store) CountEnabledCodex(ctx context.Context) (int64, error)
- func (s *Store) CountEnabledGeminiCLI(ctx context.Context) (int64, error)
- func (s *Store) CountGeminiCLI(ctx context.Context) (int64, error)
- func (s *Store) CountGeminiCLIFiltered(ctx context.Context, filter db.CredentialFilterParams) (int64, error)
- func (s *Store) CountModels(ctx context.Context) (int64, error)
- func (s *Store) CountModelsByHandler(ctx context.Context, handler string) (int64, error)
- func (s *Store) CreateAuthKey(ctx context.Context, arg db.CreateAuthKeyParams) (db.AuthKey, error)
- func (s *Store) CreateCodex(ctx context.Context, arg db.CreateCodexParams) (db.Codex, error)
- func (s *Store) CreateInitialAuthKey(ctx context.Context, arg db.CreateAuthKeyParams) (db.AuthKey, error)
- func (s *Store) CreateModel(ctx context.Context, arg db.CreateModelParams) (db.ModelRow, error)
- func (s *Store) DeleteAuthKey(ctx context.Context, key string) error
- func (s *Store) DeleteAuthKeyChecked(ctx context.Context, key string) error
- func (s *Store) DeleteCodex(ctx context.Context, id string) error
- func (s *Store) DeleteGeminiCLI(ctx context.Context, id string) error
- func (s *Store) DeleteGeminiQuota(ctx context.Context, credentialID string) error
- func (s *Store) DeleteModel(ctx context.Context, alias string) error
- func (s *Store) DeleteQuota(ctx context.Context, credentialID string) error
- func (s *Store) GetAuthKey(ctx context.Context, key string) (db.AuthKey, error)
- func (s *Store) GetCodex(ctx context.Context, id string) (db.Codex, error)
- func (s *Store) GetGeminiCLI(ctx context.Context, id string) (db.GeminiCredential, error)
- func (s *Store) ListAuthKeys(ctx context.Context) ([]db.AuthKey, error)
- func (s *Store) ListAvailableCodex(ctx context.Context) ([]db.ListAvailableCodexRow, error)
- func (s *Store) ListAvailableGeminiCLI(ctx context.Context) ([]db.ListAvailableGeminiCLIRow, error)
- func (s *Store) ListCodex(ctx context.Context) ([]db.ListCodexRow, error)
- func (s *Store) ListCodexPaged(ctx context.Context, arg db.ListCredentialPagedParams) ([]db.ListCodexRow, error)
- func (s *Store) ListCodexPlanTypes(ctx context.Context, filter db.CredentialFilterParams) ([]string, error)
- func (s *Store) ListGeminiCLI(ctx context.Context) ([]db.ListGeminiCLIRow, error)
- func (s *Store) ListGeminiCLIPaged(ctx context.Context, arg db.ListCredentialPagedParams) ([]db.ListGeminiCLIRow, error)
- func (s *Store) ListGeminiCLIPlanTypes(ctx context.Context, filter db.CredentialFilterParams) ([]string, error)
- func (s *Store) ListModels(ctx context.Context) ([]db.ModelRow, error)
- func (s *Store) ListSettings(ctx context.Context) ([]db.Setting, error)
- func (s *Store) RestoreExpiredThrottledCodex(ctx context.Context) error
- func (s *Store) RestoreExpiredThrottledGeminiCLI(ctx context.Context) error
- func (s *Store) ReverseInfoFromModel(ctx context.Context, alias string) (db.ReverseInfoFromModelRow, error)
- func (s *Store) SaveSettings(ctx context.Context, settings []db.UpsertSettingParams) error
- func (s *Store) SetGeminiQuotaThrottled(ctx context.Context, credentialID string, modelTier string, ...) error
- func (s *Store) SetQuotaThrottled(ctx context.Context, credentialID string, modelTier string, ...) error
- func (s *Store) UpdateAuthKey(ctx context.Context, key string, role string, note string) (db.AuthKey, error)
- func (s *Store) UpdateAuthKeyChecked(ctx context.Context, key string, role string, note string) (db.AuthKey, error)
- func (s *Store) UpdateCodexPlanType(ctx context.Context, id string, planType string) (db.Codex, error)
- func (s *Store) UpdateCodexStatus(ctx context.Context, id string, status string, reason string) (db.Codex, error)
- func (s *Store) UpdateCodexTokens(ctx context.Context, arg db.UpdateCodexTokensParams) (db.Codex, error)
- func (s *Store) UpdateGeminiCLIStatus(ctx context.Context, id string, status string, reason string) (db.GeminiCredential, error)
- func (s *Store) UpdateGeminiPlanType(ctx context.Context, id string, planType string) (db.GeminiCredential, error)
- func (s *Store) UpdateGeminiTokens(ctx context.Context, arg db.UpdateGeminiTokensParams) (db.GeminiCredential, error)
- func (s *Store) UpdateModel(ctx context.Context, arg db.UpdateModelParams) (db.ModelRow, error)
- func (s *Store) UpsertGeminiCLI(ctx context.Context, arg db.UpsertGeminiCLIParams) (db.GeminiCredential, error)
- func (s *Store) UpsertGeminiQuota(ctx context.Context, arg db.UpsertGeminiQuotaParams) error
- func (s *Store) UpsertQuota(ctx context.Context, arg db.UpsertQuotaParams) error
- func (s *Store) UpsertSetting(ctx context.Context, arg db.UpsertSettingParams) (db.Setting, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CountAuthKeysByRole ¶
func (*Store) CountCodexFiltered ¶
func (*Store) CountEnabledCodex ¶
func (*Store) CountEnabledGeminiCLI ¶ added in v0.7.0
func (*Store) CountGeminiCLI ¶ added in v0.7.0
func (*Store) CountGeminiCLIFiltered ¶ added in v0.7.0
func (*Store) CountModelsByHandler ¶
func (*Store) CreateAuthKey ¶
func (*Store) CreateCodex ¶
func (*Store) CreateInitialAuthKey ¶
func (*Store) CreateModel ¶
func (*Store) DeleteAuthKeyChecked ¶
func (*Store) DeleteGeminiCLI ¶ added in v0.7.0
func (*Store) DeleteGeminiQuota ¶ added in v0.7.0
func (*Store) DeleteQuota ¶
func (*Store) GetAuthKey ¶
func (*Store) GetGeminiCLI ¶ added in v0.7.0
func (*Store) ListAuthKeys ¶
func (*Store) ListAvailableCodex ¶
func (*Store) ListAvailableGeminiCLI ¶ added in v0.7.0
func (*Store) ListCodexPaged ¶
func (s *Store) ListCodexPaged(ctx context.Context, arg db.ListCredentialPagedParams) ([]db.ListCodexRow, error)
func (*Store) ListCodexPlanTypes ¶ added in v0.9.4
func (*Store) ListGeminiCLI ¶ added in v0.7.0
func (*Store) ListGeminiCLIPaged ¶ added in v0.7.0
func (s *Store) ListGeminiCLIPaged(ctx context.Context, arg db.ListCredentialPagedParams) ([]db.ListGeminiCLIRow, error)
func (*Store) ListGeminiCLIPlanTypes ¶ added in v0.9.4
func (*Store) ListSettings ¶
func (*Store) RestoreExpiredThrottledCodex ¶ added in v0.8.16
func (*Store) RestoreExpiredThrottledGeminiCLI ¶ added in v0.8.16
func (*Store) ReverseInfoFromModel ¶
func (*Store) SaveSettings ¶
func (*Store) SetGeminiQuotaThrottled ¶ added in v0.7.0
func (*Store) SetQuotaThrottled ¶
func (*Store) UpdateAuthKey ¶
func (*Store) UpdateAuthKeyChecked ¶
func (*Store) UpdateCodexPlanType ¶ added in v0.8.18
func (*Store) UpdateCodexStatus ¶
func (*Store) UpdateCodexTokens ¶
func (*Store) UpdateGeminiCLIStatus ¶ added in v0.7.0
func (*Store) UpdateGeminiPlanType ¶ added in v0.8.14
func (*Store) UpdateGeminiTokens ¶ added in v0.7.0
func (s *Store) UpdateGeminiTokens(ctx context.Context, arg db.UpdateGeminiTokensParams) (db.GeminiCredential, error)
func (*Store) UpdateModel ¶
func (*Store) UpsertGeminiCLI ¶ added in v0.7.0
func (s *Store) UpsertGeminiCLI(ctx context.Context, arg db.UpsertGeminiCLIParams) (db.GeminiCredential, error)
func (*Store) UpsertGeminiQuota ¶ added in v0.7.0
func (*Store) UpsertQuota ¶
func (*Store) UpsertSetting ¶
Click to show internal directories.
Click to hide internal directories.