| 41 | ) |
| 42 | |
| 43 | type UserInternalAPI struct { |
| 44 | DB storage.UserDatabase |
| 45 | KeyDatabase storage.KeyDatabase |
| 46 | SyncProducer *producers.SyncAPI |
| 47 | KeyChangeProducer *producers.KeyChange |
| 48 | Config *config.UserAPI |
| 49 | |
| 50 | DisableTLSValidation bool |
| 51 | // AppServices is the list of all registered AS |
| 52 | AppServices []config.ApplicationService |
| 53 | RSAPI rsapi.UserRoomserverAPI |
| 54 | PgClient pushgateway.Client |
| 55 | FedClient fedsenderapi.KeyserverFederationAPI |
| 56 | Updater *DeviceListUpdater |
| 57 | } |
| 58 | |
| 59 | func (a *UserInternalAPI) PerformAdminCreateRegistrationToken(ctx context.Context, registrationToken *clientapi.RegistrationToken) (bool, error) { |
| 60 | exists, err := a.DB.RegistrationTokenExists(ctx, *registrationToken.Token) |
nothing calls this directly
no outgoing calls
no test coverage detected