bouncer/internal/store/layer.go

26 lines
428 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
package store
import "time"
type (
LayerName Name
LayerType string
)
type LayerHeader struct {
Proxy ProxyName `json:"proxy"`
Name LayerName `json:"name"`
Type LayerType `json:"type"`
Weight int `json:"weight"`
Enabled bool `json:"enabled"`
}
type Layer struct {
LayerHeader
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Options map[string]any `json:"options"`
}