Documentation ¶
Index ¶
- type UserInternalAPI
- func (a *UserInternalAPI) InputAccountData(ctx context.Context, req *api.InputAccountDataRequest, ...) error
- func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.PerformAccountCreationRequest, ...) error
- func (a *UserInternalAPI) PerformAccountDeactivation(ctx context.Context, req *api.PerformAccountDeactivationRequest, ...) error
- func (a *UserInternalAPI) PerformDeviceCreation(ctx context.Context, req *api.PerformDeviceCreationRequest, ...) error
- func (a *UserInternalAPI) PerformDeviceDeletion(ctx context.Context, req *api.PerformDeviceDeletionRequest, ...) error
- func (a *UserInternalAPI) PerformDeviceUpdate(ctx context.Context, req *api.PerformDeviceUpdateRequest, ...) error
- func (a *UserInternalAPI) PerformForgetThreePID(ctx context.Context, req *api.PerformForgetThreePIDRequest, res *struct{}) error
- func (a *UserInternalAPI) PerformKeyBackup(ctx context.Context, req *api.PerformKeyBackupRequest, ...) error
- func (a *UserInternalAPI) PerformLastSeenUpdate(ctx context.Context, req *api.PerformLastSeenUpdateRequest, ...) error
- func (a *UserInternalAPI) PerformLoginTokenCreation(ctx context.Context, req *api.PerformLoginTokenCreationRequest, ...) error
- func (a *UserInternalAPI) PerformLoginTokenDeletion(ctx context.Context, req *api.PerformLoginTokenDeletionRequest, ...) error
- func (a *UserInternalAPI) PerformOpenIDTokenCreation(ctx context.Context, req *api.PerformOpenIDTokenCreationRequest, ...) error
- func (a *UserInternalAPI) PerformPasswordUpdate(ctx context.Context, req *api.PerformPasswordUpdateRequest, ...) error
- func (a *UserInternalAPI) PerformPushRulesPut(ctx context.Context, req *api.PerformPushRulesPutRequest, _ *struct{}) error
- func (a *UserInternalAPI) PerformPusherDeletion(ctx context.Context, req *api.PerformPusherDeletionRequest, res *struct{}) error
- func (a *UserInternalAPI) PerformPusherSet(ctx context.Context, req *api.PerformPusherSetRequest, res *struct{}) error
- func (a *UserInternalAPI) PerformSaveThreePIDAssociation(ctx context.Context, req *api.PerformSaveThreePIDAssociationRequest, ...) error
- func (a *UserInternalAPI) QueryAccessToken(ctx context.Context, req *api.QueryAccessTokenRequest, ...) error
- func (a *UserInternalAPI) QueryAccountAvailability(ctx context.Context, req *api.QueryAccountAvailabilityRequest, ...) error
- func (a *UserInternalAPI) QueryAccountByPassword(ctx context.Context, req *api.QueryAccountByPasswordRequest, ...) error
- func (a *UserInternalAPI) QueryAccountData(ctx context.Context, req *api.QueryAccountDataRequest, ...) error
- func (a *UserInternalAPI) QueryDeviceInfos(ctx context.Context, req *api.QueryDeviceInfosRequest, ...) error
- func (a *UserInternalAPI) QueryDevices(ctx context.Context, req *api.QueryDevicesRequest, ...) error
- func (a *UserInternalAPI) QueryKeyBackup(ctx context.Context, req *api.QueryKeyBackupRequest, ...) error
- func (a *UserInternalAPI) QueryLocalpartForThreePID(ctx context.Context, req *api.QueryLocalpartForThreePIDRequest, ...) error
- func (a *UserInternalAPI) QueryLoginToken(ctx context.Context, req *api.QueryLoginTokenRequest, ...) error
- func (a *UserInternalAPI) QueryNotifications(ctx context.Context, req *api.QueryNotificationsRequest, ...) error
- func (a *UserInternalAPI) QueryNumericLocalpart(ctx context.Context, req *api.QueryNumericLocalpartRequest, ...) error
- func (a *UserInternalAPI) QueryOpenIDToken(ctx context.Context, req *api.QueryOpenIDTokenRequest, ...) error
- func (a *UserInternalAPI) QueryProfile(ctx context.Context, req *api.QueryProfileRequest, ...) error
- func (a *UserInternalAPI) QueryPushRules(ctx context.Context, req *api.QueryPushRulesRequest, ...) error
- func (a *UserInternalAPI) QueryPushers(ctx context.Context, req *api.QueryPushersRequest, ...) error
- func (a *UserInternalAPI) QuerySearchProfiles(ctx context.Context, req *api.QuerySearchProfilesRequest, ...) error
- func (a *UserInternalAPI) QueryThreePIDsForLocalpart(ctx context.Context, req *api.QueryThreePIDsForLocalpartRequest, ...) error
- func (a *UserInternalAPI) SetAvatarURL(ctx context.Context, req *api.PerformSetAvatarURLRequest, ...) error
- func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInternalAPI ¶
type UserInternalAPI struct { DB storage.Database SyncProducer *producers.SyncAPI Config *config.UserAPI DisableTLSValidation bool // AppServices is the list of all registered AS AppServices []config.ApplicationService KeyAPI keyapi.UserKeyAPI RSAPI rsapi.UserRoomserverAPI PgClient pushgateway.Client Cfg *config.UserAPI }
func (*UserInternalAPI) InputAccountData ¶
func (a *UserInternalAPI) InputAccountData(ctx context.Context, req *api.InputAccountDataRequest, res *api.InputAccountDataResponse) error
func (*UserInternalAPI) PerformAccountCreation ¶
func (a *UserInternalAPI) PerformAccountCreation(ctx context.Context, req *api.PerformAccountCreationRequest, res *api.PerformAccountCreationResponse) error
func (*UserInternalAPI) PerformAccountDeactivation ¶
func (a *UserInternalAPI) PerformAccountDeactivation(ctx context.Context, req *api.PerformAccountDeactivationRequest, res *api.PerformAccountDeactivationResponse) error
PerformAccountDeactivation deactivates the user's account, removing all ability for the user to login again.
func (*UserInternalAPI) PerformDeviceCreation ¶
func (a *UserInternalAPI) PerformDeviceCreation(ctx context.Context, req *api.PerformDeviceCreationRequest, res *api.PerformDeviceCreationResponse) error
func (*UserInternalAPI) PerformDeviceDeletion ¶
func (a *UserInternalAPI) PerformDeviceDeletion(ctx context.Context, req *api.PerformDeviceDeletionRequest, res *api.PerformDeviceDeletionResponse) error
func (*UserInternalAPI) PerformDeviceUpdate ¶
func (a *UserInternalAPI) PerformDeviceUpdate(ctx context.Context, req *api.PerformDeviceUpdateRequest, res *api.PerformDeviceUpdateResponse) error
func (*UserInternalAPI) PerformForgetThreePID ¶ added in v0.7.0
func (a *UserInternalAPI) PerformForgetThreePID(ctx context.Context, req *api.PerformForgetThreePIDRequest, res *struct{}) error
func (*UserInternalAPI) PerformKeyBackup ¶ added in v0.5.0
func (a *UserInternalAPI) PerformKeyBackup(ctx context.Context, req *api.PerformKeyBackupRequest, res *api.PerformKeyBackupResponse) error
func (*UserInternalAPI) PerformLastSeenUpdate ¶ added in v0.3.1
func (a *UserInternalAPI) PerformLastSeenUpdate( ctx context.Context, req *api.PerformLastSeenUpdateRequest, res *api.PerformLastSeenUpdateResponse, ) error
func (*UserInternalAPI) PerformLoginTokenCreation ¶ added in v0.6.3
func (a *UserInternalAPI) PerformLoginTokenCreation(ctx context.Context, req *api.PerformLoginTokenCreationRequest, res *api.PerformLoginTokenCreationResponse) error
PerformLoginTokenCreation creates a new login token and associates it with the provided data.
func (*UserInternalAPI) PerformLoginTokenDeletion ¶ added in v0.6.3
func (a *UserInternalAPI) PerformLoginTokenDeletion(ctx context.Context, req *api.PerformLoginTokenDeletionRequest, res *api.PerformLoginTokenDeletionResponse) error
PerformLoginTokenDeletion ensures the token doesn't exist.
func (*UserInternalAPI) PerformOpenIDTokenCreation ¶ added in v0.4.0
func (a *UserInternalAPI) PerformOpenIDTokenCreation(ctx context.Context, req *api.PerformOpenIDTokenCreationRequest, res *api.PerformOpenIDTokenCreationResponse) error
PerformOpenIDTokenCreation creates a new token that a relying party uses to authenticate a user
func (*UserInternalAPI) PerformPasswordUpdate ¶
func (a *UserInternalAPI) PerformPasswordUpdate(ctx context.Context, req *api.PerformPasswordUpdateRequest, res *api.PerformPasswordUpdateResponse) error
func (*UserInternalAPI) PerformPushRulesPut ¶ added in v0.6.5
func (a *UserInternalAPI) PerformPushRulesPut( ctx context.Context, req *api.PerformPushRulesPutRequest, _ *struct{}, ) error
func (*UserInternalAPI) PerformPusherDeletion ¶ added in v0.6.5
func (a *UserInternalAPI) PerformPusherDeletion(ctx context.Context, req *api.PerformPusherDeletionRequest, res *struct{}) error
func (*UserInternalAPI) PerformPusherSet ¶ added in v0.6.5
func (a *UserInternalAPI) PerformPusherSet(ctx context.Context, req *api.PerformPusherSetRequest, res *struct{}) error
func (*UserInternalAPI) PerformSaveThreePIDAssociation ¶ added in v0.7.0
func (a *UserInternalAPI) PerformSaveThreePIDAssociation(ctx context.Context, req *api.PerformSaveThreePIDAssociationRequest, res *struct{}) error
func (*UserInternalAPI) QueryAccessToken ¶
func (a *UserInternalAPI) QueryAccessToken(ctx context.Context, req *api.QueryAccessTokenRequest, res *api.QueryAccessTokenResponse) error
func (*UserInternalAPI) QueryAccountAvailability ¶ added in v0.7.0
func (a *UserInternalAPI) QueryAccountAvailability(ctx context.Context, req *api.QueryAccountAvailabilityRequest, res *api.QueryAccountAvailabilityResponse) error
func (*UserInternalAPI) QueryAccountByPassword ¶ added in v0.7.0
func (a *UserInternalAPI) QueryAccountByPassword(ctx context.Context, req *api.QueryAccountByPasswordRequest, res *api.QueryAccountByPasswordResponse) error
func (*UserInternalAPI) QueryAccountData ¶
func (a *UserInternalAPI) QueryAccountData(ctx context.Context, req *api.QueryAccountDataRequest, res *api.QueryAccountDataResponse) error
func (*UserInternalAPI) QueryDeviceInfos ¶
func (a *UserInternalAPI) QueryDeviceInfos(ctx context.Context, req *api.QueryDeviceInfosRequest, res *api.QueryDeviceInfosResponse) error
func (*UserInternalAPI) QueryDevices ¶
func (a *UserInternalAPI) QueryDevices(ctx context.Context, req *api.QueryDevicesRequest, res *api.QueryDevicesResponse) error
func (*UserInternalAPI) QueryKeyBackup ¶ added in v0.5.0
func (a *UserInternalAPI) QueryKeyBackup(ctx context.Context, req *api.QueryKeyBackupRequest, res *api.QueryKeyBackupResponse) error
func (*UserInternalAPI) QueryLocalpartForThreePID ¶ added in v0.7.0
func (a *UserInternalAPI) QueryLocalpartForThreePID(ctx context.Context, req *api.QueryLocalpartForThreePIDRequest, res *api.QueryLocalpartForThreePIDResponse) error
func (*UserInternalAPI) QueryLoginToken ¶ added in v0.6.3
func (a *UserInternalAPI) QueryLoginToken(ctx context.Context, req *api.QueryLoginTokenRequest, res *api.QueryLoginTokenResponse) error
QueryLoginToken returns the data associated with a login token. If the token is not valid, success is returned, but res.Data == nil.
func (*UserInternalAPI) QueryNotifications ¶ added in v0.6.5
func (a *UserInternalAPI) QueryNotifications(ctx context.Context, req *api.QueryNotificationsRequest, res *api.QueryNotificationsResponse) error
func (*UserInternalAPI) QueryNumericLocalpart ¶ added in v0.7.0
func (a *UserInternalAPI) QueryNumericLocalpart(ctx context.Context, req *api.QueryNumericLocalpartRequest, res *api.QueryNumericLocalpartResponse) error
func (*UserInternalAPI) QueryOpenIDToken ¶ added in v0.4.0
func (a *UserInternalAPI) QueryOpenIDToken(ctx context.Context, req *api.QueryOpenIDTokenRequest, res *api.QueryOpenIDTokenResponse) error
QueryOpenIDToken validates that the OpenID token was issued for the user, the replying party uses this for validation
func (*UserInternalAPI) QueryProfile ¶
func (a *UserInternalAPI) QueryProfile(ctx context.Context, req *api.QueryProfileRequest, res *api.QueryProfileResponse) error
func (*UserInternalAPI) QueryPushRules ¶ added in v0.6.5
func (a *UserInternalAPI) QueryPushRules(ctx context.Context, req *api.QueryPushRulesRequest, res *api.QueryPushRulesResponse) error
func (*UserInternalAPI) QueryPushers ¶ added in v0.6.5
func (a *UserInternalAPI) QueryPushers(ctx context.Context, req *api.QueryPushersRequest, res *api.QueryPushersResponse) error
func (*UserInternalAPI) QuerySearchProfiles ¶
func (a *UserInternalAPI) QuerySearchProfiles(ctx context.Context, req *api.QuerySearchProfilesRequest, res *api.QuerySearchProfilesResponse) error
func (*UserInternalAPI) QueryThreePIDsForLocalpart ¶ added in v0.7.0
func (a *UserInternalAPI) QueryThreePIDsForLocalpart(ctx context.Context, req *api.QueryThreePIDsForLocalpartRequest, res *api.QueryThreePIDsForLocalpartResponse) error
func (*UserInternalAPI) SetAvatarURL ¶ added in v0.7.0
func (a *UserInternalAPI) SetAvatarURL(ctx context.Context, req *api.PerformSetAvatarURLRequest, res *api.PerformSetAvatarURLResponse) error
func (*UserInternalAPI) SetDisplayName ¶ added in v0.7.0
func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, res *api.PerformUpdateDisplayNameResponse) error
Click to show internal directories.
Click to hide internal directories.