Files
podux/internal/domain/server/repository.go
T
2026-03-02 17:40:35 +08:00

11 lines
335 B
Go

package server
// Repository defines persistence operations for the server domain.
type Repository interface {
CountByBootStatus(status ServerStatus) (int64, error)
UpdateBootStatus(id string, status ServerStatus) error
ResetAllBootStatus() error
GetMaxLatency() (int64, error)
FindAllWithAutoConnect() ([]ServerRecord, error)
}