Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(sc ServeConfig)
func SendKillSignal ¶
func SendKillSignal(slog *zap.SugaredLogger)
Types ¶
type ProxyMiddleware ¶
type ServeConfig ¶
type ServeConfig struct {
Port uint `json:"port"`
Root string `json:"root"`
File string `json:"file"`
CORS bool `json:"cors"`
HTTPS bool `json:"https"`
HistoryApiFallback bool `json:"historyApiFallback"`
Proxy []ProxyMiddleware `json:"proxy"`
Server Server `json:"server"`
// TODO
Host string `json:"host"`
IsYarn bool `json:"isYarn"`
// internal
Internal internalConfig `json:"-"`
LocalAddress string `json:"-"`
NetworkAddress string `json:"-"`
HttpProtocol string `json:"-"`
WebsocketProtocol string `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.