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

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)
}