Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fvbock/endless
/ functions
Functions
40 in github.com/fvbock/endless
⨍
Functions
40
◇
Types & classes
3
↓ 6 callers
Method
ListenAndServe
* ListenAndServe listens on the TCP network address srv.Addr and then calls Serve to handle requests on incoming connections. If srv.Addr is blank, ":
endless.go:207
↓ 3 callers
Method
getState
()
endless.go:168
↓ 3 callers
Method
setState
(st uint8)
endless.go:175
↓ 2 callers
Method
Close
()
endless.go:537
↓ 2 callers
Method
File
()
endless.go:525
↓ 2 callers
Method
ListenAndServeTLS
* ListenAndServeTLS listens on the TCP network address srv.Addr and then calls Serve to handle requests on incoming TLS connections. Filenames contai
endless.go:243
↓ 2 callers
Function
NewServer
* NewServer returns an intialized endlessServer Object. Calling Serve on it will actually "start" the server. */
endless.go:89
↓ 2 callers
Method
Serve
* Serve accepts incoming HTTP connections on the listener l, creating a new service goroutine for each. The service goroutines read requests and then
endless.go:192
↓ 2 callers
Method
getListener
* getListener either opens a new socket to listen on, or takes the acceptor socket it got passed when restarted. */
endless.go:286
↓ 2 callers
Method
hammerTime
* hammerTime forces the server to shutdown in a given timeout - whether it finished outstanding requests or not. if Read/WriteTimeout are not set or t
endless.go:398
↓ 2 callers
Method
handleSignals
* handleSignals listens for os Signals and calls any hooked in function that the user had registered with the signal. */
endless.go:316
↓ 2 callers
Function
newEndlessListener
(l net.Listener, srv *endlessServer)
endless.go:507
↓ 2 callers
Method
shutdown
* shutdown closes the listener so that no new connections are accepted. it also starts a goroutine that will hammer (stop all running requests) the se
endless.go:370
↓ 2 callers
Method
signalHooks
(ppFlag int, sig os.Signal)
endless.go:355
↓ 1 callers
Function
compileAndStartTestServer
(compileDone chan struct{})
test/test_restarting.go:17
↓ 1 callers
Method
fork
()
endless.go:421
↓ 1 callers
Function
keepRestartingServer
()
test/test_restarting.go:84
↓ 1 callers
Function
runAB
()
test/test_restarting.go:46
↓ 1 callers
Function
stopTestServer
()
test/test_restarting.go:63
Method
Accept
()
endless.go:489
Method
Close
()
endless.go:516
Function
ListenAndServe
* ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections. Handler is typi
endless.go:151
Function
ListenAndServeTLS
* ListenAndServeTLS acts identically to ListenAndServe, except that it expects HTTPS connections. Additionally, files containing a certificate and mat
endless.go:163
Method
RegisterSignalHook
* RegisterSignalHook registers a function to be run PRE_SIGNAL or POST_SIGNAL for a given signal. PRE or POST in this case means before or after the s
endless.go:550
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:14
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/testserver.go:14
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/simple.go:12
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/tls.go:12
Function
handler
(w http.ResponseWriter, r *http.Request)
examples/hook.go:13
Function
handlerBar
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:23
Function
handlerFoo
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:18
Function
init
()
endless.go:50
Function
main
()
test/test_restarting.go:105
Function
main
()
examples/multi_port.go:27
Function
main
()
examples/testserver.go:19
Function
main
()
examples/simple.go:16
Function
main
()
examples/tls.go:16
Function
main
()
examples/hook.go:25
Function
postSigUsr1
()
examples/hook.go:21
Function
preSigUsr1
()
examples/hook.go:17