| 70 | } |
| 71 | |
| 72 | type endlessServer struct { |
| 73 | http.Server |
| 74 | EndlessListener net.Listener |
| 75 | SignalHooks map[int]map[os.Signal][]func() |
| 76 | tlsInnerListener *endlessListener |
| 77 | wg sync.WaitGroup |
| 78 | sigChan chan os.Signal |
| 79 | isChild bool |
| 80 | state uint8 |
| 81 | lock *sync.RWMutex |
| 82 | BeforeBegin func(add string) |
| 83 | } |
| 84 | |
| 85 | /* |
| 86 | NewServer returns an intialized endlessServer Object. Calling Serve on it will |
nothing calls this directly
no outgoing calls
no test coverage detected