Documentation ¶
Index ¶
- func NewH2cRoundTripper(log log.Logger, hook hook.Service) http.RoundTripper
- func Serve(ctx context.Context, logger log.Logger, cfg Config, handler http.Handler) func(ctx context.Context) error
- func WithoutCancel(ctx context.Context) context.Context
- type Config
- type Context
- type Director
- type H2c
- type RequestDirector
- type ServicesConfig
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.