bouncer/internal/store/proxy.go

23 lines
413 B
Go
Raw Permalink Normal View History

2023-04-24 20:52:12 +02:00
package store
import (
"time"
)
type ProxyName Name
type ProxyHeader struct {
Name ProxyName `json:"name"`
Revision int `json:"revision"`
Weight int `json:"weight"`
Enabled bool `json:"enabled"`
2023-04-24 20:52:12 +02:00
}
type Proxy struct {
ProxyHeader
To string `json:"to"`
From []string `json:"from"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}