feat: initial commit
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
This commit is contained in:
25
internal/store/layer.go
Normal file
25
internal/store/layer.go
Normal file
@ -0,0 +1,25 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user