Documentation
¶
Index ¶
- func Check(ctx plugin.Context) error
- func Err(err error, msg string, code int) error
- func GetJSON(obj interface{}) []byte
- func New(ctx plugin.Context) (plugin.Plugin, error)
- type HostMaping
- type PoolBasic
- type PoolProperties
- type Properties
- type SSL
- type SSLProperties
- type Source
- type VSBasic
- type VSProperties
- type VSssl
- type VsLog
- type ZeusError
- type ZeusNode
- type ZeusRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostMaping ¶
type PoolProperties ¶
type PoolProperties struct {
Basic PoolBasic `json:"basic"`
}
type Properties ¶
type Properties interface {
}
type SSLProperties ¶
type SSLProperties struct {
Basic SSL `json:"basic"`
}
type VSBasic ¶
type VSBasic struct {
ListenONAny bool `json:"listen_on_any"`
ListenONHosts []string `json:"listen_on_hosts,omitempty"`
Note string `json:"note"`
DefaultPoolName string `json:"pool"`
Port int32 `json:"port"`
Enabled bool `json:"enabled"`
Protocol string `json:"protocol"` //stream http https 等等
RequestRules []string `json:"request_rules,omitempty"`
ResponseRules []string `json:"response_rules,omitempty"`
SSLDecrypt bool `json:"ssl_decrypt"`
}
type VSProperties ¶
type VSssl ¶
type VSssl struct {
ServerCertDefault string `json:"server_cert_default,omitempty"`
ServerCertHostMapping []*HostMaping `json:"server_cert_host_mapping"`
}
VSssl 虚拟服务ssl配置
type ZeusRules ¶
type ZeusRules struct {
// contains filtered or unexported fields
}
func CreateHTTPRule ¶
func CreateHTTPRule(rules []*object.RuleObject) ZeusRules
CreateHTTPRule http rule list
func CreateHTTPSRule ¶
func CreateHTTPSRule(rules []*object.RuleObject) ZeusRules
CreateHTTPSRule https rule list
Click to show internal directories.
Click to hide internal directories.