mirror of
https://github.com/luckjiawei/podux.git
synced 2026-11-30 00:56:47 +00:00
13 lines
473 B
Go
13 lines
473 B
Go
package proxy
|
|
|
|
// Repository defines persistence operations for the proxy domain.
|
|
type Repository interface {
|
|
CountByStatus(status ProxyStatus) (int64, error)
|
|
CountByBootStatus(status ProxyBootStatus) (int64, error)
|
|
CountByType() (map[string]int64, error)
|
|
UpdateBootStatus(id string, status ProxyBootStatus) error
|
|
UpdateBootStatusByServerID(serverID string, status ProxyBootStatus) error
|
|
ResetAllBootStatus() error
|
|
FindByServerID(serverID string) ([]Proxy, error)
|
|
}
|