| 37 | ) |
| 38 | |
| 39 | type imlAuthorizationModule struct { |
| 40 | serviceService service.IServiceService `autowired:""` |
| 41 | subscribeService subscribe.ISubscribeService `autowired:""` |
| 42 | authorizationService application_authorization.IAuthorizationService `autowired:""` |
| 43 | clusterService cluster.IClusterService `autowired:""` |
| 44 | transaction store.ITransaction `autowired:""` |
| 45 | } |
| 46 | |
| 47 | func (i *imlAuthorizationModule) CheckAPIKeyAuthorizationByApp(ctx context.Context, appId string, apikey string) (bool, error) { |
| 48 | authorizations, err := i.authorizationService.ListByApp(ctx, appId) |
nothing calls this directly
no outgoing calls
no test coverage detected