DeleteService deletes a service.
(ctx context.Context, id string)
| 1470 | |
| 1471 | // DeleteService deletes a service. |
| 1472 | func (c *connection) DeleteService(ctx context.Context, id string) error { |
| 1473 | res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM service WHERE id=$1", id) |
| 1474 | return checkDeleteRow("service", res, err) |
| 1475 | } |
| 1476 | |
| 1477 | // FindSeviceAuthTokens returns a list of service auth tokens. |
| 1478 | func (c *connection) FindServiceAuthTokens(ctx context.Context, serviceID string) ([]*database.ServiceAuthToken, error) { |
nothing calls this directly
no test coverage detected