Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultGcInterval = 0 * time.Second
DefaultGcInterval is the default garbage collection interval for the WTF client.
var DefaultGcRetry int64 = 3
DefaultGcRetry is the default garbage collection retry limit.
var DefaultTimeout = 10 * time.Second
DefaultTimeout is the default dialing timeout for the WTF client.
var Turbofish = []string{
"> ",
"<> ",
":<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<> ",
" ::<>",
" ::<",
" ::",
" :",
" <",
" <>",
" <>:",
" <>::",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
" <>:: ",
"<>:: ",
">:: ",
":: ",
": ",
}
Functions ¶
func Serve ¶
Serve starts a WTF server on the given relay URL. GC: Automatically close the server when health check fails for the given times - gc: health check interval interval (0 for disable) - retry: Retry the health check for the given times - timeout: Automatically close the client when dial timeouts - quiet: Do not log the status of the server (false for loggy) - persist: Automatically restart the server when it becomes unresponsive (0 for disable)
func ServeWithConfig ¶
func ServeWithConfig(config *ServerConfig) error
Serve starts a WTF server on the given relay URL.