MCPcopy Create free account
hub / github.com/element-hq/dendrite / UserInternalAPI

Struct UserInternalAPI

userapi/internal/user_api.go:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41)
42
43type 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
59func (a *UserInternalAPI) PerformAdminCreateRegistrationToken(ctx context.Context, registrationToken *clientapi.RegistrationToken) (bool, error) {
60 exists, err := a.DB.RegistrationTokenExists(ctx, *registrationToken.Token)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected