Documentation
¶
Index ¶
- type AuthorizationCore
- func (c *AuthorizationCore) AccountChangeAuthorizationSettings(in *mtproto.TLAccountChangeAuthorizationSettings) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AccountResetPassword(in *mtproto.TLAccountResetPassword) (*mtproto.Account_ResetPasswordResult, error)
- func (c *AuthorizationCore) AccountSetAuthorizationTTL(in *mtproto.TLAccountSetAuthorizationTTL) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthBindTempAuthKey(in *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthCancelCode(in *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthCheckPassword(in *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthCheckRecoveryPassword(in *mtproto.TLAuthCheckRecoveryPassword) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthDropTempAuthKeys(in *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthExportAuthorization(in *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)
- func (c *AuthorizationCore) AuthImportAuthorization(in *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthImportBotAuthorization(in *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthImportWebTokenAuthorization(in *mtproto.TLAuthImportWebTokenAuthorization) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthLogOut(in *mtproto.TLAuthLogOut) (*mtproto.Auth_LoggedOut, error)
- func (c *AuthorizationCore) AuthRecoverPassword(in *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthRequestPasswordRecovery(in *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)
- func (c *AuthorizationCore) AuthResendCode(in *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)
- func (c *AuthorizationCore) AuthResetAuthorizations(in *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)
- func (c *AuthorizationCore) AuthSendCode(in *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)
- func (c *AuthorizationCore) AuthSignIn(in *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthSignUp(in *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)
- func (c *AuthorizationCore) AuthToggleBan(in *mtproto.TLAuthToggleBan) (*mtproto.PredefinedUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationCore ¶
type AuthorizationCore struct { logx.Logger MD *metadata.RpcMetadata // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, svcCtx *svc.ServiceContext) *AuthorizationCore
func (*AuthorizationCore) AccountChangeAuthorizationSettings ¶ added in v0.86.0
func (c *AuthorizationCore) AccountChangeAuthorizationSettings(in *mtproto.TLAccountChangeAuthorizationSettings) (*mtproto.Bool, error)
AccountChangeAuthorizationSettings account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;
func (*AuthorizationCore) AccountResetPassword ¶
func (c *AuthorizationCore) AccountResetPassword(in *mtproto.TLAccountResetPassword) (*mtproto.Account_ResetPasswordResult, error)
AccountResetPassword account.resetPassword#9308ce1b = account.ResetPasswordResult;
func (*AuthorizationCore) AccountSetAuthorizationTTL ¶ added in v0.86.0
func (c *AuthorizationCore) AccountSetAuthorizationTTL(in *mtproto.TLAccountSetAuthorizationTTL) (*mtproto.Bool, error)
AccountSetAuthorizationTTL account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;
func (*AuthorizationCore) AuthBindTempAuthKey ¶
func (c *AuthorizationCore) AuthBindTempAuthKey(in *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)
AuthBindTempAuthKey auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;
func (*AuthorizationCore) AuthCancelCode ¶
func (c *AuthorizationCore) AuthCancelCode(in *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)
AuthCancelCode auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;
func (*AuthorizationCore) AuthCheckPassword ¶
func (c *AuthorizationCore) AuthCheckPassword(in *mtproto.TLAuthCheckPassword) (*mtproto.Auth_Authorization, error)
AuthCheckPassword auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;
func (*AuthorizationCore) AuthCheckRecoveryPassword ¶
func (c *AuthorizationCore) AuthCheckRecoveryPassword(in *mtproto.TLAuthCheckRecoveryPassword) (*mtproto.Bool, error)
AuthCheckRecoveryPassword auth.checkRecoveryPassword#d36bf79 code:string = Bool;
func (*AuthorizationCore) AuthDropTempAuthKeys ¶
func (c *AuthorizationCore) AuthDropTempAuthKeys(in *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)
AuthDropTempAuthKeys auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;
func (*AuthorizationCore) AuthExportAuthorization ¶
func (c *AuthorizationCore) AuthExportAuthorization(in *mtproto.TLAuthExportAuthorization) (*mtproto.Auth_ExportedAuthorization, error)
AuthExportAuthorization auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;
func (*AuthorizationCore) AuthImportAuthorization ¶
func (c *AuthorizationCore) AuthImportAuthorization(in *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)
AuthImportAuthorization auth.importAuthorization#a57a7dad id:long bytes:bytes = auth.Authorization;
func (*AuthorizationCore) AuthImportBotAuthorization ¶
func (c *AuthorizationCore) AuthImportBotAuthorization(in *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)
AuthImportBotAuthorization auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
func (*AuthorizationCore) AuthImportWebTokenAuthorization ¶ added in v0.90.1
func (c *AuthorizationCore) AuthImportWebTokenAuthorization(in *mtproto.TLAuthImportWebTokenAuthorization) (*mtproto.Auth_Authorization, error)
AuthImportWebTokenAuthorization auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization;
func (*AuthorizationCore) AuthLogOut ¶ added in v0.87.1
func (c *AuthorizationCore) AuthLogOut(in *mtproto.TLAuthLogOut) (*mtproto.Auth_LoggedOut, error)
AuthLogOut auth.logOut#3e72ba19 = auth.LoggedOut;
func (*AuthorizationCore) AuthRecoverPassword ¶
func (c *AuthorizationCore) AuthRecoverPassword(in *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)
AuthRecoverPassword auth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization;
func (*AuthorizationCore) AuthRequestPasswordRecovery ¶
func (c *AuthorizationCore) AuthRequestPasswordRecovery(in *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)
AuthRequestPasswordRecovery auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;
func (*AuthorizationCore) AuthResendCode ¶
func (c *AuthorizationCore) AuthResendCode(in *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)
AuthResendCode auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;
func (*AuthorizationCore) AuthResetAuthorizations ¶
func (c *AuthorizationCore) AuthResetAuthorizations(in *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)
AuthResetAuthorizations auth.resetAuthorizations#9fab0d1a = Bool;
func (*AuthorizationCore) AuthSendCode ¶
func (c *AuthorizationCore) AuthSendCode(in *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)
AuthSendCode auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;
func (*AuthorizationCore) AuthSignIn ¶
func (c *AuthorizationCore) AuthSignIn(in *mtproto.TLAuthSignIn) (*mtproto.Auth_Authorization, error)
AuthSignIn auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;
func (*AuthorizationCore) AuthSignUp ¶
func (c *AuthorizationCore) AuthSignUp(in *mtproto.TLAuthSignUp) (*mtproto.Auth_Authorization, error)
AuthSignUp auth.signUp#80eee427 phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;
func (*AuthorizationCore) AuthToggleBan ¶
func (c *AuthorizationCore) AuthToggleBan(in *mtproto.TLAuthToggleBan) (*mtproto.PredefinedUser, error)
AuthToggleBan auth.toggleBan flags:# phone:string predefined:flags.0?true expires:flags.1?int reason:flags.1?string = PredefinedUser;
Source Files
¶
- account.changeAuthorizationSettings_handler.go
- account.resetPassword_handler.go
- account.setAuthorizationTTL_handler.go
- auth.bindTempAuthKey_handler.go
- auth.cancelCode_handler.go
- auth.checkPassword_handler.go
- auth.checkRecoveryPassword_handler.go
- auth.dropTempAuthKeys_handler.go
- auth.exportAuthorization_handler.go
- auth.importAuthorization_handler.go
- auth.importBotAuthorization_handler.go
- auth.importWebTokenAuthorization_handler.go
- auth.logOut_handler.go
- auth.recoverPassword_handler.go
- auth.requestPasswordRecovery_handler.go
- auth.resendCode_handler.go
- auth.resetAuthorizations_handler.go
- auth.sendCode_handler.go
- auth.signIn_handler.go
- auth.signUp_handler.go
- auth.toggleBan_handler.go
- core.go