Endpoint wraps an async-gateway Service with HTTP logic
| 31 | |
| 32 | // Endpoint wraps an async-gateway Service with HTTP logic |
| 33 | type Endpoint struct { |
| 34 | service Service |
| 35 | logger *zap.SugaredLogger |
| 36 | } |
| 37 | |
| 38 | // NewEndpoint creates and initializes a new Endpoint struct |
| 39 | func NewEndpoint(svc Service, logger *zap.SugaredLogger) *Endpoint { |
nothing calls this directly
no outgoing calls
no test coverage detected