Documentation ¶
Index ¶
- type UserInternalAPI
- func (a *UserInternalAPI) AddTelNumbers(ctx context.Context, localpart string, telNums []int64) (err error)
- func (a *UserInternalAPI) CouldBeAutoInvited(ctx context.Context, inviter, invitee string) (bool, error)
- func (a *UserInternalAPI) InputAccountData(ctx context.Context, req *api.InputAccountDataRequest, ...) error
- func (a *UserInternalAPI) InsertAddressBook(ctx context.Context, localpart string, friendLocalpart []string) (err error)
- func (a *UserInternalAPI) InsertChainData(ctx context.Context, localpart string, servername string, chatFee string, ...) (err error)
- func (a *UserInternalAPI) InsertRelationInvite(ctx context.Context, inviter string, invitee string, presentFee string) (err error)
- func (a *UserInternalAPI) JudgeShouldAutoJoin(ctx context.Context, inviter, invitee string) (bool, 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, ...)
- 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, res *api.QueryNumericLocalpartResponse) 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) SelectChainData(ctx context.Context, localpart string) (*types2.UserChainInfo, error)
- func (a *UserInternalAPI) SetAvatarURL(ctx context.Context, req *api.PerformSetAvatarURLRequest, ...) error
- func (a *UserInternalAPI) SetChatFee(ctx context.Context, localpart string, chatFee string) (err error)
- func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, _ *struct{}) error
- func (a *UserInternalAPI) SetMortgageFee(ctx context.Context, localpart string, mortgageFee string) (err 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 DisableTLSValidation bool ServerName gomatrixserverlib.ServerName // AppServices is the list of all registered AS AppServices []config.ApplicationService KeyAPI keyapi.UserKeyAPI RSAPI rsapi.UserRoomserverAPI }
func (*UserInternalAPI) AddTelNumbers ¶
func (*UserInternalAPI) CouldBeAutoInvited ¶
func (a *UserInternalAPI) CouldBeAutoInvited(ctx context.Context, inviter, invitee string) (bool, error)
CouldBeAutoInvited
func (*UserInternalAPI) InputAccountData ¶
func (a *UserInternalAPI) InputAccountData(ctx context.Context, req *api.InputAccountDataRequest, res *api.InputAccountDataResponse) error
func (*UserInternalAPI) InsertAddressBook ¶
func (*UserInternalAPI) InsertChainData ¶
func (*UserInternalAPI) InsertRelationInvite ¶
func (*UserInternalAPI) JudgeShouldAutoJoin ¶
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 ¶
func (a *UserInternalAPI) PerformForgetThreePID(ctx context.Context, req *api.PerformForgetThreePIDRequest, res *struct{}) error
func (*UserInternalAPI) PerformKeyBackup ¶
func (a *UserInternalAPI) PerformKeyBackup(ctx context.Context, req *api.PerformKeyBackupRequest, res *api.PerformKeyBackupResponse) error
func (*UserInternalAPI) PerformLastSeenUpdate ¶
func (a *UserInternalAPI) PerformLastSeenUpdate( ctx context.Context, req *api.PerformLastSeenUpdateRequest, res *api.PerformLastSeenUpdateResponse, ) error
func (*UserInternalAPI) PerformLoginTokenCreation ¶
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 ¶
func (a *UserInternalAPI) PerformLoginTokenDeletion(ctx context.Context, req *api.PerformLoginTokenDeletionRequest, res *api.PerformLoginTokenDeletionResponse) error
PerformLoginTokenDeletion ensures the token doesn't exist.
func (*UserInternalAPI) PerformOpenIDTokenCreation ¶
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 ¶
func (a *UserInternalAPI) PerformPushRulesPut( ctx context.Context, req *api.PerformPushRulesPutRequest, _ *struct{}, ) error
func (*UserInternalAPI) PerformPusherDeletion ¶
func (a *UserInternalAPI) PerformPusherDeletion(ctx context.Context, req *api.PerformPusherDeletionRequest, res *struct{}) error
func (*UserInternalAPI) PerformPusherSet ¶
func (a *UserInternalAPI) PerformPusherSet(ctx context.Context, req *api.PerformPusherSetRequest, res *struct{}) error
func (*UserInternalAPI) PerformSaveThreePIDAssociation ¶
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 ¶
func (a *UserInternalAPI) QueryAccountAvailability(ctx context.Context, req *api.QueryAccountAvailabilityRequest, res *api.QueryAccountAvailabilityResponse) error
func (*UserInternalAPI) QueryAccountByPassword ¶
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 ¶
func (a *UserInternalAPI) QueryKeyBackup(ctx context.Context, req *api.QueryKeyBackupRequest, res *api.QueryKeyBackupResponse)
func (*UserInternalAPI) QueryLocalpartForThreePID ¶
func (a *UserInternalAPI) QueryLocalpartForThreePID(ctx context.Context, req *api.QueryLocalpartForThreePIDRequest, res *api.QueryLocalpartForThreePIDResponse) error
func (*UserInternalAPI) QueryLoginToken ¶
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 ¶
func (a *UserInternalAPI) QueryNotifications(ctx context.Context, req *api.QueryNotificationsRequest, res *api.QueryNotificationsResponse) error
func (*UserInternalAPI) QueryNumericLocalpart ¶
func (a *UserInternalAPI) QueryNumericLocalpart(ctx context.Context, res *api.QueryNumericLocalpartResponse) error
func (*UserInternalAPI) QueryOpenIDToken ¶
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 ¶
func (a *UserInternalAPI) QueryPushRules(ctx context.Context, req *api.QueryPushRulesRequest, res *api.QueryPushRulesResponse) error
func (*UserInternalAPI) QueryPushers ¶
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 ¶
func (a *UserInternalAPI) QueryThreePIDsForLocalpart(ctx context.Context, req *api.QueryThreePIDsForLocalpartRequest, res *api.QueryThreePIDsForLocalpartResponse) error
func (*UserInternalAPI) SelectChainData ¶
func (a *UserInternalAPI) SelectChainData(ctx context.Context, localpart string) (*types2.UserChainInfo, error)
func (*UserInternalAPI) SetAvatarURL ¶
func (a *UserInternalAPI) SetAvatarURL(ctx context.Context, req *api.PerformSetAvatarURLRequest, res *api.PerformSetAvatarURLResponse) error
func (*UserInternalAPI) SetChatFee ¶
func (*UserInternalAPI) SetDisplayName ¶
func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, _ *struct{}) error