mirror of
https://github.com/Pacerino/CaddyProxyManager.git
synced 2026-07-28 00:13:01 -04:00
17 lines
342 B
Go
17 lines
342 B
Go
package database
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Host struct {
|
|
gorm.Model
|
|
Domains string `json:"domains" validate:"required,fqdn|hostname_port"`
|
|
Matcher string `json:"matcher"`
|
|
Upstreams []Upstream
|
|
}
|
|
|
|
type Upstream struct {
|
|
gorm.Model
|
|
HostID uint `json:"hostId"`
|
|
Backend string `json:"backend" validate:"required,hostname_port"`
|
|
}
|