Documentation
¶
Index ¶
- type Store
- func (s *Store) ActivateInstance(instanceID string) error
- func (s *Store) GetDashboardStats() (api.DashboardStats, error)
- func (s *Store) GetInstanceKey(instanceID string) (string, error)
- func (s *Store) ListInstances(limit int) ([]api.InstanceSummary, error)
- func (s *Store) RegisterInstance(req api.RegisterRequest) error
- func (s *Store) SaveSnapshot(req api.SnapshotRequest) 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) ActivateInstance ¶
ActivateInstance passe l'instance de pending à active
func (*Store) GetDashboardStats ¶
func (s *Store) GetDashboardStats() (api.DashboardStats, error)
GetDashboardStats calcule les stats
func (*Store) GetInstanceKey ¶
GetInstanceKey récupère la clé publique d'une instance pour vérification
func (*Store) ListInstances ¶
func (s *Store) ListInstances(limit int) ([]api.InstanceSummary, error)
ListInstances reste simple : on retourne le JSON brut
func (*Store) RegisterInstance ¶
func (s *Store) RegisterInstance(req api.RegisterRequest) error
RegisterInstance enregistre ou met à jour une instance
func (*Store) SaveSnapshot ¶
func (s *Store) SaveSnapshot(req api.SnapshotRequest) error
SaveSnapshot sauvegarde les métriques et met à jour le heartbeat
Click to show internal directories.
Click to hide internal directories.