Documentation
¶
Index ¶
- func CloseAllServers()
- func GetTLSConfig(addr string, cfg *config.Config) (*tls.Config, string, string)
- func RegisterFullMux(mux *http.ServeMux, cfg *config.Config)
- func RegisterJXAndProxyMux(mux *http.ServeMux, cfg *config.Config)
- func RegisterMonitorWebMux(mux *http.ServeMux, cfg *config.Config)
- func RegisterMux(addr string, cfg *config.Config) *http.ServeMux
- func SecurityHeaders(next http.Handler) http.Handler
- func SetHTTPHandler(addr string, h http.Handler)
- func StartHTTPServer(ctx context.Context, addr string, upgrader *tableflip.Upgrader) error
- func StartHTTPServerWithConfig(ctx context.Context, addr string, upgrader *tableflip.Upgrader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSConfig ¶
getTLSConfig 根据端口自动选择对应的 TLS 配置
func RegisterFullMux ¶
全功能 = monitor/web + jx + 默认代理
func RegisterJXAndProxyMux ¶
jx + 默认代理
func RegisterMonitorWebMux ¶
monitor + web
func StartHTTPServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.