Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { UpstreamUrl string `yaml:"UpstreamUrl"` UpstreamStatus []int `yaml:"UpstreamStatus"` UpstreamOnMatch bool `yaml:"UpstreamOnMatch,omitempty"` UpstreamEnableH2C bool `yaml:"UpstreamEnableH2C,omitempty"` }
func CreateConfig ¶
func CreateConfig() *Config
type PluginConfig ¶ added in v0.1.4
type PluginConfig struct {
// contains filtered or unexported fields
}
func CreatePluginConfig ¶ added in v0.1.4
func CreatePluginConfig() *PluginConfig
func PluginConfigFromConfig ¶ added in v0.1.4
func PluginConfigFromConfig(config *Config) (*PluginConfig, error)
func (*PluginConfig) GetTransport ¶ added in v0.1.5
func (pcnf *PluginConfig) GetTransport() http.RoundTripper
type UpstreamWhenPlugin ¶
type UpstreamWhenPlugin struct {
// contains filtered or unexported fields
}
func (*UpstreamWhenPlugin) Close ¶ added in v0.1.4
func (uwp *UpstreamWhenPlugin) Close() error
func (*UpstreamWhenPlugin) ServeHTTP ¶
func (uwp *UpstreamWhenPlugin) ServeHTTP(rw http.ResponseWriter, originalRequest *http.Request)
Click to show internal directories.
Click to hide internal directories.