The ClientDatabase interface for encapsulating database access.
| 10 | |
| 11 | // The ClientDatabase interface for encapsulating database access. |
| 12 | type ClientDatabase interface { |
| 13 | CreateClient(client *model.Client) error |
| 14 | GetClientByToken(token string) (*model.Client, error) |
| 15 | GetClientByID(id uint) (*model.Client, error) |
| 16 | GetClientsByUser(userID uint) ([]*model.Client, error) |
| 17 | DeleteClientByID(id uint) error |
| 18 | UpdateClient(client *model.Client) error |
| 19 | } |
| 20 | |
| 21 | // The ClientAPI provides handlers for managing clients and applications. |
| 22 | type ClientAPI struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…