MCPcopy Create free account

hub / github.com/fvbock/endless / functions

Functions40 in github.com/fvbock/endless

↓ 6 callersMethodListenAndServe
* 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 callersMethodgetState
()
endless.go:168
↓ 3 callersMethodsetState
(st uint8)
endless.go:175
↓ 2 callersMethodClose
()
endless.go:537
↓ 2 callersMethodFile
()
endless.go:525
↓ 2 callersMethodListenAndServeTLS
* 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 callersFunctionNewServer
* NewServer returns an intialized endlessServer Object. Calling Serve on it will actually "start" the server. */
endless.go:89
↓ 2 callersMethodServe
* 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 callersMethodgetListener
* getListener either opens a new socket to listen on, or takes the acceptor socket it got passed when restarted. */
endless.go:286
↓ 2 callersMethodhammerTime
* 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 callersMethodhandleSignals
* handleSignals listens for os Signals and calls any hooked in function that the user had registered with the signal. */
endless.go:316
↓ 2 callersFunctionnewEndlessListener
(l net.Listener, srv *endlessServer)
endless.go:507
↓ 2 callersMethodshutdown
* 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 callersMethodsignalHooks
(ppFlag int, sig os.Signal)
endless.go:355
↓ 1 callersFunctioncompileAndStartTestServer
(compileDone chan struct{})
test/test_restarting.go:17
↓ 1 callersMethodfork
()
endless.go:421
↓ 1 callersFunctionkeepRestartingServer
()
test/test_restarting.go:84
↓ 1 callersFunctionrunAB
()
test/test_restarting.go:46
↓ 1 callersFunctionstopTestServer
()
test/test_restarting.go:63
MethodAccept
()
endless.go:489
MethodClose
()
endless.go:516
FunctionListenAndServe
* 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
FunctionListenAndServeTLS
* ListenAndServeTLS acts identically to ListenAndServe, except that it expects HTTPS connections. Additionally, files containing a certificate and mat
endless.go:163
MethodRegisterSignalHook
* 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
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:14
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/testserver.go:14
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/simple.go:12
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/tls.go:12
Functionhandler
(w http.ResponseWriter, r *http.Request)
examples/hook.go:13
FunctionhandlerBar
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:23
FunctionhandlerFoo
(w http.ResponseWriter, r *http.Request)
examples/multi_port.go:18
Functioninit
()
endless.go:50
Functionmain
()
test/test_restarting.go:105
Functionmain
()
examples/multi_port.go:27
Functionmain
()
examples/testserver.go:19
Functionmain
()
examples/simple.go:16
Functionmain
()
examples/tls.go:16
Functionmain
()
examples/hook.go:25
FunctionpostSigUsr1
()
examples/hook.go:21
FunctionpreSigUsr1
()
examples/hook.go:17