mirror of
https://github.com/luckjiawei/podux.git
synced 2026-11-30 00:56:47 +00:00
11 lines
335 B
Go
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)
|
|
}
|