internal

package
v0.0.0-...-2154053 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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 (a *UserInternalAPI) AddTelNumbers(ctx context.Context, localpart string, telNums []int64) (err error)

func (*UserInternalAPI) CouldBeAutoInvited

func (a *UserInternalAPI) CouldBeAutoInvited(ctx context.Context, inviter, invitee string) (bool, error)

CouldBeAutoInvited

func (*UserInternalAPI) InputAccountData

func (*UserInternalAPI) InsertAddressBook

func (a *UserInternalAPI) InsertAddressBook(ctx context.Context, localpart string, friendLocalpart []string) (err error)

func (*UserInternalAPI) InsertChainData

func (a *UserInternalAPI) InsertChainData(ctx context.Context, localpart string, servername string, chatFee string, mortgageFee string) (err error)

func (*UserInternalAPI) InsertRelationInvite

func (a *UserInternalAPI) InsertRelationInvite(ctx context.Context, inviter string, invitee string, presentFee string) (err error)

func (*UserInternalAPI) JudgeShouldAutoJoin

func (a *UserInternalAPI) JudgeShouldAutoJoin(ctx context.Context, inviter, invitee string) (bool, error)

func (*UserInternalAPI) PerformAccountCreation

func (*UserInternalAPI) PerformAccountDeactivation

PerformAccountDeactivation deactivates the user's account, removing all ability for the user to login again.

func (*UserInternalAPI) PerformDeviceCreation

func (*UserInternalAPI) PerformDeviceDeletion

func (*UserInternalAPI) PerformDeviceUpdate

func (*UserInternalAPI) PerformForgetThreePID

func (a *UserInternalAPI) PerformForgetThreePID(ctx context.Context, req *api.PerformForgetThreePIDRequest, res *struct{}) error

func (*UserInternalAPI) PerformKeyBackup

func (*UserInternalAPI) PerformLastSeenUpdate

func (*UserInternalAPI) PerformLoginTokenCreation

PerformLoginTokenCreation creates a new login token and associates it with the provided data.

func (*UserInternalAPI) PerformLoginTokenDeletion

PerformLoginTokenDeletion ensures the token doesn't exist.

func (*UserInternalAPI) PerformOpenIDTokenCreation

PerformOpenIDTokenCreation creates a new token that a relying party uses to authenticate a user

func (*UserInternalAPI) PerformPasswordUpdate

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 (*UserInternalAPI) QueryAccountAvailability

func (*UserInternalAPI) QueryAccountByPassword

func (*UserInternalAPI) QueryAccountData

func (*UserInternalAPI) QueryDeviceInfos

func (*UserInternalAPI) QueryDevices

func (*UserInternalAPI) QueryKeyBackup

func (*UserInternalAPI) QueryLocalpartForThreePID

func (*UserInternalAPI) QueryLoginToken

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 (*UserInternalAPI) QueryNumericLocalpart

func (a *UserInternalAPI) QueryNumericLocalpart(ctx context.Context, res *api.QueryNumericLocalpartResponse) error

func (*UserInternalAPI) QueryOpenIDToken

QueryOpenIDToken validates that the OpenID token was issued for the user, the replying party uses this for validation

func (*UserInternalAPI) QueryProfile

func (*UserInternalAPI) QueryPushRules

func (*UserInternalAPI) QueryPushers

func (*UserInternalAPI) QuerySearchProfiles

func (*UserInternalAPI) SelectChainData

func (a *UserInternalAPI) SelectChainData(ctx context.Context, localpart string) (*types2.UserChainInfo, error)

func (*UserInternalAPI) SetAvatarURL

func (*UserInternalAPI) SetChatFee

func (a *UserInternalAPI) SetChatFee(ctx context.Context, localpart string, chatFee string) (err error)

func (*UserInternalAPI) SetDisplayName

func (a *UserInternalAPI) SetDisplayName(ctx context.Context, req *api.PerformUpdateDisplayNameRequest, _ *struct{}) error

func (*UserInternalAPI) SetMortgageFee

func (a *UserInternalAPI) SetMortgageFee(ctx context.Context, localpart string, mortgageFee string) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL