Documentation
¶
Index ¶
Constants ¶
View Source
const TLSProxyOption = "https_dev_proxy"
Variables ¶
This section is empty.
Functions ¶
func NewTLSProxy ¶
Types ¶
type ErrorWrapper ¶
type ErrorWrapper struct {
// contains filtered or unexported fields
}
ErrorWrapper logs incoming Write bytes with the context filled logrus.FieldLogger.
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer represents a configured HTTP server.
func New ¶
func New(cmdCtx, evalCtx context.Context, log logrus.FieldLogger, settings *config.Settings, timings *runtime.HTTPTimings, p runtime.Port, hosts runtime.Hosts) *HTTPServer
New creates a configured HTTP server.
func NewServerList ¶
func NewServerList(cmdCtx, evalCtx context.Context, log logrus.FieldLogger, settings *config.Settings, timings *runtime.HTTPTimings, srvConf runtime.ServerConfiguration) ([]*HTTPServer, func())
NewServerList creates a list of all configured HTTP server.
func (*HTTPServer) Listen ¶
func (s *HTTPServer) Listen() error
Listen initiates the configured http handler and start listing on given port.
func (*HTTPServer) ServeHTTP ¶
func (s *HTTPServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type ListenPort ¶
type ListenPort string
func (ListenPort) Port ¶
func (lp ListenPort) Port() runtime.Port
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux is a http request router and dispatches requests to their corresponding http handlers.
func NewMux ¶
func NewMux(options *runtime.MuxOptions) *Mux
type SelfSignedCertificate ¶ added in v1.8.0
type SelfSignedCertificate struct { CA []byte // PEM encoded Server *tls.Certificate }
func NewCertificate ¶ added in v1.8.0
func NewCertificate(duration time.Duration, hosts []string, notBefore *time.Time) (*SelfSignedCertificate, error)
NewCertificate creates a certificate with given hosts and duration. If no hosts are provided all localhost variants will be used.
type TLSDevPorts ¶
type TLSDevPorts map[ListenPort]Ports
func (TLSDevPorts) Add ¶
func (tdp TLSDevPorts) Add(pair string) error
func (TLSDevPorts) Get ¶
func (tdp TLSDevPorts) Get(p string) []string
Click to show internal directories.
Click to hide internal directories.