mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 19:30:25 +08:00
19 lines
380 B
Go
19 lines
380 B
Go
|
|
package serverconfigs
|
||
|
|
|
||
|
|
// 关闭页面配置
|
||
|
|
type HTTPShutdownConfig struct {
|
||
|
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
||
|
|
URL string `yaml:"url" json:"url"`
|
||
|
|
Status int `yaml:"status" json:"status"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// 获取新对象
|
||
|
|
func NewHTTPShutdownConfig() *HTTPShutdownConfig {
|
||
|
|
return &HTTPShutdownConfig{}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 校验
|
||
|
|
func (this *HTTPShutdownConfig) Init() error {
|
||
|
|
return nil
|
||
|
|
}
|