William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
26 lines
422 B
Go
26 lines
422 B
Go
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 LayerOptions `json:"options"`
|
|
}
|