Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorStructType = errors.New("error struct type") ErrorUpstreamNotInit = errors.New("upstream not init") )
Functions ¶
Types ¶
type Config ¶
type Config struct { Scheme string `json:"scheme" enum:"HTTP,HTTPS" label:"请求协议"` Type string `json:"type" enum:"round-robin" label:"负载算法"` Config string `json:"config" label:"配置"` Discovery eosc.RequireId `json:"discovery" required:"true" label:"服务发现" skill:"github.com/eolinker/apinto/discovery.discovery.IDiscovery"` }
Config http-service-proxy驱动配置结构体
type SendAddr ¶
type SendAddr struct {
// contains filtered or unexported fields
}
func (*SendAddr) DoFilter ¶
func (s *SendAddr) DoFilter(ctx http_service.IHttpContext, next http_service.IChain) (err error)
type Upstream ¶
type Upstream struct {
// contains filtered or unexported fields
}
func NewUpstream ¶
func (up *Upstream) Merge(configs map[string]*plugin.Config) map[string]*plugin.Config { return plugin.MergeConfig(configs, up.pluginConf) }
type UpstreamHandler ¶
type UpstreamHandler struct {
// contains filtered or unexported fields
}
func NewUpstreamHandler ¶
func (*UpstreamHandler) Destroy ¶
func (u *UpstreamHandler) Destroy()
func (*UpstreamHandler) DoChain ¶
func (u *UpstreamHandler) DoChain(ctx http_service.IHttpContext) error
DoChain 请求发送
Source Files ¶
Click to show internal directories.
Click to hide internal directories.