rpc

package
v0.0.0-...-d9af017 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoMainServer

func DoMainServer()

Types

type AccountServiceImpl

type AccountServiceImpl struct {
}

func (*AccountServiceImpl) AccountChangePhone

func (s *AccountServiceImpl) AccountChangePhone(ctx context.Context, request *mtproto.TLAccountChangePhone) (*mtproto.User, error)

account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

func (*AccountServiceImpl) AccountCheckUsername

func (s *AccountServiceImpl) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)

account.checkUsername#2714d86c username:string = Bool;

func (*AccountServiceImpl) AccountConfirmPhone

func (s *AccountServiceImpl) AccountConfirmPhone(ctx context.Context, request *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)

account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

func (*AccountServiceImpl) AccountDeleteAccount

func (s *AccountServiceImpl) AccountDeleteAccount(ctx context.Context, request *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)

account.deleteAccount#418d4e0b reason:string = Bool;

func (*AccountServiceImpl) AccountGetAccountTTL

func (s *AccountServiceImpl) AccountGetAccountTTL(ctx context.Context, request *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)

account.getAccountTTL#8fc711d = AccountDaysTTL;

func (*AccountServiceImpl) AccountGetAuthorizations

account.getAuthorizations#e320c158 = account.Authorizations;

func (*AccountServiceImpl) AccountGetNotifySettings

account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;

func (*AccountServiceImpl) AccountGetPassword

account.getPassword#548a30f5 = account.Password; account.noPassword#96dabc18 new_salt:bytes email_unconfirmed_pattern:string = account.Password; account.password#7c18141c current_salt:bytes new_salt:bytes hint:string has_recovery:Bool email_unconfirmed_pattern:string = account.Password;

func (*AccountServiceImpl) AccountGetPasswordSettings

account.getPasswordSettings#bc8d11bb current_password_hash:bytes = account.PasswordSettings;

func (*AccountServiceImpl) AccountGetPrivacy

account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;

func (*AccountServiceImpl) AccountGetTmpPassword

account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPassword;

func (*AccountServiceImpl) AccountRegisterDevice

func (s *AccountServiceImpl) AccountRegisterDevice(ctx context.Context, request *mtproto.TLAccountRegisterDevice) (*mtproto.Bool, error)

account.registerDevice#637ea878 token_type:int token:string = Bool;

func (*AccountServiceImpl) AccountReportPeer

func (s *AccountServiceImpl) AccountReportPeer(ctx context.Context, request *mtproto.TLAccountReportPeer) (*mtproto.Bool, error)

account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;

func (*AccountServiceImpl) AccountResetAuthorization

func (s *AccountServiceImpl) AccountResetAuthorization(ctx context.Context, request *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)

account.resetAuthorization#df77f3bc hash:long = Bool;

func (*AccountServiceImpl) AccountResetNotifySettings

func (s *AccountServiceImpl) AccountResetNotifySettings(ctx context.Context, request *mtproto.TLAccountResetNotifySettings) (*mtproto.Bool, error)

account.resetNotifySettings#db7e1747 = Bool;

func (*AccountServiceImpl) AccountSendChangePhoneCode

func (s *AccountServiceImpl) AccountSendChangePhoneCode(ctx context.Context, request *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)

account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode;

func (*AccountServiceImpl) AccountSendConfirmPhoneCode

func (s *AccountServiceImpl) AccountSendConfirmPhoneCode(ctx context.Context, request *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)

account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode;

func (*AccountServiceImpl) AccountSetAccountTTL

func (s *AccountServiceImpl) AccountSetAccountTTL(ctx context.Context, request *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)

account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;

func (*AccountServiceImpl) AccountSetPrivacy

account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;

func (*AccountServiceImpl) AccountUnregisterDevice

func (s *AccountServiceImpl) AccountUnregisterDevice(ctx context.Context, request *mtproto.TLAccountUnregisterDevice) (*mtproto.Bool, error)

account.unregisterDevice#65c55b40 token_type:int token:string = Bool;

func (*AccountServiceImpl) AccountUpdateDeviceLocked

func (s *AccountServiceImpl) AccountUpdateDeviceLocked(ctx context.Context, request *mtproto.TLAccountUpdateDeviceLocked) (*mtproto.Bool, error)

account.updateDeviceLocked#38df3532 period:int = Bool; Android's client and tdesktop client not impl this functions

func (*AccountServiceImpl) AccountUpdateNotifySettings

func (s *AccountServiceImpl) AccountUpdateNotifySettings(ctx context.Context, request *mtproto.TLAccountUpdateNotifySettings) (reply *mtproto.Bool, err error)

account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;

func (*AccountServiceImpl) AccountUpdatePasswordSettings

func (s *AccountServiceImpl) AccountUpdatePasswordSettings(ctx context.Context, request *mtproto.TLAccountUpdatePasswordSettings) (*mtproto.Bool, error)

account.updatePasswordSettings#fa7c4b86 current_password_hash:bytes new_settings:account.PasswordInputSettings = Bool;

func (*AccountServiceImpl) AccountUpdateProfile

func (s *AccountServiceImpl) AccountUpdateProfile(ctx context.Context, request *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)

account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;

func (*AccountServiceImpl) AccountUpdateStatus

func (s *AccountServiceImpl) AccountUpdateStatus(ctx context.Context, request *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)

account.updateStatus#6628562c offline:Bool = Bool;

func (*AccountServiceImpl) AccountUpdateUsername

func (s *AccountServiceImpl) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)

account.updateUsername#3e0bdd7c username:string = User;

Jump to

Keyboard shortcuts

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