Documentation ¶
Index ¶
Constants ¶
View Source
const (
APIEndpoint = "http://localhost:2019"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Apps map[string]ConfigHTTPApp `json:"apps"`
}
func CreateConfigFromServedPorts ¶
func CreateConfigFromServedPorts( ports map[string]*proto.EnvServedPortBindings, ) *Config
type ConfigHTTPApp ¶
type ConfigHTTPApp struct {
Servers ConfigHTTPServers `json:"servers"`
}
type ConfigHTTPServer ¶
type ConfigHTTPServer struct { Listen []string `json:"listen"` Routes []ConfigHTTPServerRoute `json:"routes"` }
type ConfigHTTPServerHandle ¶
type ConfigHTTPServerHandle struct { Handler string `json:"handler"` Upstreams []ConfigHTTPServerUpstreams `json:"upstreams,omitempty"` Body string `json:"body,omitempty"` }
type ConfigHTTPServerMatch ¶
type ConfigHTTPServerMatch struct {
Host []string `json:"host"`
}
type ConfigHTTPServerRoute ¶
type ConfigHTTPServerRoute struct { Match []ConfigHTTPServerMatch `json:"match,omitempty"` Handle []ConfigHTTPServerHandle `json:"handle"` }
type ConfigHTTPServerUpstreams ¶
type ConfigHTTPServerUpstreams struct {
Dial string `json:"dial"`
}
type ConfigHTTPServers ¶
type ConfigHTTPServers map[string]ConfigHTTPServer
Click to show internal directories.
Click to hide internal directories.