| 18 | ) |
| 19 | |
| 20 | type GardenServer struct { |
| 21 | logger lager.Logger |
| 22 | |
| 23 | server *http.Server |
| 24 | listenNetwork string |
| 25 | listenAddr string |
| 26 | |
| 27 | containerGraceTime time.Duration |
| 28 | backend garden.Backend |
| 29 | |
| 30 | listener net.Listener |
| 31 | handling *sync.WaitGroup |
| 32 | |
| 33 | started bool |
| 34 | startMutex *sync.Mutex |
| 35 | stopping chan bool |
| 36 | |
| 37 | bomberman *bomberman.Bomberman |
| 38 | |
| 39 | conns map[net.Conn]net.Conn |
| 40 | mu sync.Mutex |
| 41 | |
| 42 | streamer *streamer.Streamer |
| 43 | |
| 44 | destroys map[string]struct{} |
| 45 | destroysL *sync.Mutex |
| 46 | } |
| 47 | |
| 48 | func New( |
| 49 | listenNetwork, listenAddr string, |
nothing calls this directly
no outgoing calls
no test coverage detected