Initial commit (code only without large binaries)
This commit is contained in:
30
EdgeCommon/pkg/serverconfigs/domain_mismatch_action.go
Normal file
30
EdgeCommon/pkg/serverconfigs/domain_mismatch_action.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package serverconfigs
|
||||
|
||||
import "github.com/iwind/TeaGo/maps"
|
||||
|
||||
const (
|
||||
DomainMismatchActionPage = "page"
|
||||
DomainMismatchActionClose = "close"
|
||||
DomainMismatchActionRedirect = "redirect"
|
||||
)
|
||||
|
||||
type DomainMismatchPageOptions struct {
|
||||
StatusCode int `yaml:"statusCode" json:"statusCode"`
|
||||
ContentHTML string `yaml:"contentHTML" json:"contentHTML"`
|
||||
}
|
||||
|
||||
type DomainMismatchCloseOptions struct {
|
||||
}
|
||||
|
||||
type DomainMismatchRedirectOptions struct {
|
||||
URL string `yaml:"url" json:"url"`
|
||||
}
|
||||
|
||||
type DomainMismatchAction struct {
|
||||
Code string `yaml:"code" json:"code"` // 动作代号
|
||||
Options maps.Map `yaml:"options" json:"options"` // 动作选项
|
||||
}
|
||||
|
||||
func (this *DomainMismatchAction) Init() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user