store

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

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 NewStore

func NewStore(connStr string) (*Store, error)

func (*Store) ActivateInstance

func (s *Store) ActivateInstance(instanceID string) error

ActivateInstance passe l'instance de pending à active

func (*Store) GetDashboardStats

func (s *Store) GetDashboardStats() (api.DashboardStats, error)

GetDashboardStats calcule les stats

func (*Store) GetInstanceKey

func (s *Store) GetInstanceKey(instanceID string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL