Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeWebsocket = "websocket" TypeQuic = "quic" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.6.0
type Config struct { Type string `toml:"type"` // support websocket and quic Host string `toml:"host"` Path string `toml:"path"` ListenAddr string `toml:"listen_addr"` Key string `toml:"key"` Crt string `toml:"crt"` WebRoot string `toml:"web_root"` WebKey string `toml:"web_key"` WebCrt string `toml:"web_crt"` WebHost string `toml:"web_host"` Timeout Duration `toml:"timeout"` Secret string `toml:"secret"` Period uint `toml:"period"` ReverseProxyHost string `toml:"reverse_proxy_host"` ReverseProxyKey string `toml:"reverse_proxy_key"` ReverseProxyCrt string `toml:"reverse_proxy_crt"` ReverseProxyAddr string `toml:"reverse_proxy_addr"` Pprof string `toml:"pprof"` }
Click to show internal directories.
Click to hide internal directories.