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 PoolConnection
- 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 PoolConnection ¶
type PoolConnection struct {
MaxReplyTime int `json:"max_reply_time"`
}
type PoolProperties ¶
type PoolProperties struct { Basic PoolBasic `json:"basic"` Connection PoolConnection `json:"connection"` }
type Properties ¶
type Properties interface { }
type SSLProperties ¶
type SSLProperties struct {
Basic SSL `json:"basic"`
}
type VSBasic ¶
type VSBasic struct { AddXForwardedFor bool `json:"add_x_forwarded_for"` 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"` ConnectTimeout int `json:"connect_timeout"` }
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.