The ApplicationDatabase interface for encapsulating database access.
| 17 | |
| 18 | // The ApplicationDatabase interface for encapsulating database access. |
| 19 | type ApplicationDatabase interface { |
| 20 | CreateApplication(application *model.Application) error |
| 21 | GetApplicationByToken(token string) (*model.Application, error) |
| 22 | GetApplicationByID(id uint) (*model.Application, error) |
| 23 | GetApplicationsByUser(userID uint) ([]*model.Application, error) |
| 24 | DeleteApplicationByID(id uint) error |
| 25 | UpdateApplication(application *model.Application) error |
| 26 | } |
| 27 | |
| 28 | // The ApplicationAPI provides handlers for managing applications. |
| 29 | type ApplicationAPI struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…