mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
18 lines
646 B
Go
18 lines
646 B
Go
package model
|
|
|
|
// PostSyncActionType defines the type of action after synchronization
|
|
const (
|
|
// PostSyncActionNone indicates no operation after sync
|
|
PostSyncActionNone = "none"
|
|
// PostSyncActionReloadNginx indicates reload Nginx after sync
|
|
PostSyncActionReloadNginx = "reload_nginx"
|
|
)
|
|
|
|
// EnvGroup represents a group of environments that can be synced across nodes
|
|
type EnvGroup struct {
|
|
Model
|
|
Name string `json:"name"`
|
|
SyncNodeIds []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
|
|
OrderID int `json:"-" gorm:"default:0"`
|
|
PostSyncAction string `json:"post_sync_action" gorm:"default:'reload_nginx'"`
|
|
}
|