Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewH2cRoundTripper ¶
Types ¶
type Config ¶
type Config struct {
// port to listen on
Port int `yaml:"port" mapstructure:"port" default:"8080"`
// the network interface to listen on
Host string `yaml:"host" mapstructure:"host" default:"127.0.0.1"`
Name string
// RulesPath is a directory path where ruleset is defined
// that this service should implement
RulesPath string `yaml:"ruleset" mapstructure:"ruleset"`
// RulesPathSecret could be a env name, file path or actual value required
// to access RulesPath files
RulesPathSecret string `yaml:"ruleset_secret" mapstructure:"ruleset_secret"`
}
type H2c ¶
type H2c struct {
// contains filtered or unexported fields
}
H2c
func NewH2c ¶
func NewH2c(roundTripper http.RoundTripper, director RequestDirector) *H2c
type RequestDirector ¶
type ServicesConfig ¶
type ServicesConfig struct {
Services []Config `yaml:"services" mapstructure:"services"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.