App is a pure functional component that does not have any fields, except Server. It is a request-scoped struct constructed every time a request hits the server, and its only purpose is to provide business logic to Server via its methods.
| 23 | // It is a request-scoped struct constructed every time a request hits the server, |
| 24 | // and its only purpose is to provide business logic to Server via its methods. |
| 25 | type App struct { |
| 26 | ch *Channels |
| 27 | } |
| 28 | |
| 29 | func New(options ...AppOption) *App { |
| 30 | app := &App{} |
nothing calls this directly
no outgoing calls
no test coverage detected