linethrift

package
v0.0.0-...-b09bc7e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthServiceConfirmE2EELoginResult_Success_DEFAULT string

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	// Parameters:
	//  - Verifier
	//  - DeviceSecret
	ConfirmE2EELogin(ctx context.Context, verifier string, deviceSecret []byte) (r string, err error)
	// Parameters:
	//  - LoginRequest
	LoginZ(ctx context.Context, loginRequest *LoginRequest) (r *LoginResult_, err error)
	LogoutZ(ctx context.Context) (err error)
}

type AuthServiceClient

type AuthServiceClient struct {
	// contains filtered or unexported fields
}

func NewAuthServiceClient

func NewAuthServiceClient(c thrift.TClient) *AuthServiceClient

func NewAuthServiceClientProtocol

func NewAuthServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *AuthServiceClient

func (*AuthServiceClient) Client_

func (p *AuthServiceClient) Client_() thrift.TClient

func (*AuthServiceClient) ConfirmE2EELogin

func (p *AuthServiceClient) ConfirmE2EELogin(ctx context.Context, verifier string, deviceSecret []byte) (r string, err error)

Parameters:

  • Verifier
  • DeviceSecret

func (*AuthServiceClient) LoginZ

func (p *AuthServiceClient) LoginZ(ctx context.Context, loginRequest *LoginRequest) (r *LoginResult_, err error)

Parameters:

  • LoginRequest

func (*AuthServiceClient) LogoutZ

func (p *AuthServiceClient) LogoutZ(ctx context.Context) (err error)

type AuthServiceConfirmE2EELoginArgs

type AuthServiceConfirmE2EELoginArgs struct {
	Verifier     string `thrift:"verifier,1" db:"verifier" json:"verifier"`
	DeviceSecret []byte `thrift:"deviceSecret,2" db:"deviceSecret" json:"deviceSecret"`
}

Attributes:

  • Verifier
  • DeviceSecret

func NewAuthServiceConfirmE2EELoginArgs

func NewAuthServiceConfirmE2EELoginArgs() *AuthServiceConfirmE2EELoginArgs

func (*AuthServiceConfirmE2EELoginArgs) GetDeviceSecret

func (p *AuthServiceConfirmE2EELoginArgs) GetDeviceSecret() []byte

func (*AuthServiceConfirmE2EELoginArgs) GetVerifier

func (p *AuthServiceConfirmE2EELoginArgs) GetVerifier() string

func (*AuthServiceConfirmE2EELoginArgs) Read

func (*AuthServiceConfirmE2EELoginArgs) ReadField1

func (*AuthServiceConfirmE2EELoginArgs) ReadField2

func (*AuthServiceConfirmE2EELoginArgs) String

func (*AuthServiceConfirmE2EELoginArgs) Write

type AuthServiceConfirmE2EELoginResult

type AuthServiceConfirmE2EELoginResult struct {
	Success *string        `thrift:"success,0" db:"success" json:"success,omitempty"`
	E       *TalkException `thrift:"e,1" db:"e" json:"e,omitempty"`
}

Attributes:

  • Success
  • E

func NewAuthServiceConfirmE2EELoginResult

func NewAuthServiceConfirmE2EELoginResult() *AuthServiceConfirmE2EELoginResult

func (*AuthServiceConfirmE2EELoginResult) GetE

func (*AuthServiceConfirmE2EELoginResult) GetSuccess

func (p *AuthServiceConfirmE2EELoginResult) GetSuccess() string

func (*AuthServiceConfirmE2EELoginResult) IsSetE

func (*AuthServiceConfirmE2EELoginResult) IsSetSuccess

func (p *AuthServiceConfirmE2EELoginResult) IsSetSuccess() bool

func (*AuthServiceConfirmE2EELoginResult) Read

func (*AuthServiceConfirmE2EELoginResult) ReadField0

func (*AuthServiceConfirmE2EELoginResult) ReadField1

func (*AuthServiceConfirmE2EELoginResult) String

func (*AuthServiceConfirmE2EELoginResult) Write

type AuthServiceLoginZArgs

type AuthServiceLoginZArgs struct {
	// unused field # 1
	LoginRequest *LoginRequest `thrift:"loginRequest,2" db:"loginRequest" json:"loginRequest"`
}

Attributes:

  • LoginRequest

func NewAuthServiceLoginZArgs

func NewAuthServiceLoginZArgs() *AuthServiceLoginZArgs

func (*AuthServiceLoginZArgs) GetLoginRequest

func (p *AuthServiceLoginZArgs) GetLoginRequest() *LoginRequest

func (*AuthServiceLoginZArgs) IsSetLoginRequest

func (p *AuthServiceLoginZArgs) IsSetLoginRequest() bool

func (*AuthServiceLoginZArgs) Read

func (*AuthServiceLoginZArgs) ReadField2

func (p *AuthServiceLoginZArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*AuthServiceLoginZArgs) String

func (p *AuthServiceLoginZArgs) String() string

func (*AuthServiceLoginZArgs) Write

type AuthServiceLoginZResult

type AuthServiceLoginZResult struct {
	Success *LoginResult_  `thrift:"success,0" db:"success" json:"success,omitempty"`
	E       *TalkException `thrift:"e,1" db:"e" json:"e,omitempty"`
}

Attributes:

  • Success
  • E

func NewAuthServiceLoginZResult

func NewAuthServiceLoginZResult() *AuthServiceLoginZResult

func (*AuthServiceLoginZResult) GetE

func (*AuthServiceLoginZResult) GetSuccess

func (p *AuthServiceLoginZResult) GetSuccess() *LoginResult_

func (*AuthServiceLoginZResult) IsSetE

func (p *AuthServiceLoginZResult) IsSetE() bool

func (*AuthServiceLoginZResult) IsSetSuccess

func (p *AuthServiceLoginZResult) IsSetSuccess() bool

func (*AuthServiceLoginZResult) Read

func (*AuthServiceLoginZResult) ReadField0

func (p *AuthServiceLoginZResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*AuthServiceLoginZResult) ReadField1

func (p *AuthServiceLoginZResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*AuthServiceLoginZResult) String

func (p *AuthServiceLoginZResult) String() string

func (*AuthServiceLoginZResult) Write

type AuthServiceLogoutZArgs

type AuthServiceLogoutZArgs struct {
}

func NewAuthServiceLogoutZArgs

func NewAuthServiceLogoutZArgs() *AuthServiceLogoutZArgs

func (*AuthServiceLogoutZArgs) Read

func (*AuthServiceLogoutZArgs) String

func (p *AuthServiceLogoutZArgs) String() string

func (*AuthServiceLogoutZArgs) Write

type AuthServiceLogoutZResult

type AuthServiceLogoutZResult struct {
	E *TalkException `thrift:"e,1" db:"e" json:"e,omitempty"`
}

Attributes:

  • E

func NewAuthServiceLogoutZResult

func NewAuthServiceLogoutZResult() *AuthServiceLogoutZResult

func (*AuthServiceLogoutZResult) GetE

func (*AuthServiceLogoutZResult) IsSetE

func (p *AuthServiceLogoutZResult) IsSetE() bool

func (*AuthServiceLogoutZResult) Read

func (*AuthServiceLogoutZResult) ReadField1

func (p *AuthServiceLogoutZResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*AuthServiceLogoutZResult) String

func (p *AuthServiceLogoutZResult) String() string

func (*AuthServiceLogoutZResult) Write

type AuthServiceProcessor

type AuthServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewAuthServiceProcessor

func NewAuthServiceProcessor(handler AuthService) *AuthServiceProcessor

func (*AuthServiceProcessor) AddToProcessorMap

func (p *AuthServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*AuthServiceProcessor) GetProcessorFunction

func (p *AuthServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*AuthServiceProcessor) Process

func (p *AuthServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*AuthServiceProcessor) ProcessorMap

func (p *AuthServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type ErrorCode

type ErrorCode int64
const (
	ErrorCode_ILLEGAL_ARGUMENT                                      ErrorCode = 0
	ErrorCode_AUTHENTICATION_FAILED                                 ErrorCode = 1
	ErrorCode_DB_FAILED                                             ErrorCode = 2
	ErrorCode_INVALID_STATE                                         ErrorCode = 3
	ErrorCode_EXCESSIVE_ACCESS                                      ErrorCode = 4
	ErrorCode_NOT_FOUND                                             ErrorCode = 5
	ErrorCode_INVALID_LENGTH                                        ErrorCode = 6
	ErrorCode_NOT_AVAILABLE_USER                                    ErrorCode = 7
	ErrorCode_NOT_AUTHORIZED_DEVICE                                 ErrorCode = 8
	ErrorCode_INVALID_MID                                           ErrorCode = 9
	ErrorCode_NOT_A_MEMBER                                          ErrorCode = 10
	ErrorCode_INCOMPATIBLE_APP_VERSION                              ErrorCode = 11
	ErrorCode_NOT_READY                                             ErrorCode = 12
	ErrorCode_NOT_AVAILABLE_SESSION                                 ErrorCode = 13
	ErrorCode_NOT_AUTHORIZED_SESSION                                ErrorCode = 14
	ErrorCode_SYSTEM_ERROR                                          ErrorCode = 15
	ErrorCode_NO_AVAILABLE_VERIFICATION_METHOD                      ErrorCode = 16
	ErrorCode_NOT_AUTHENTICATED                                     ErrorCode = 17
	ErrorCode_INVALID_IDENTITY_CREDENTIAL                           ErrorCode = 18
	ErrorCode_NOT_AVAILABLE_IDENTITY_IDENTIFIER                     ErrorCode = 19
	ErrorCode_INTERNAL_ERROR                                        ErrorCode = 20
	ErrorCode_NO_SUCH_IDENTITY_IDENFIER                             ErrorCode = 21
	ErrorCode_DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY            ErrorCode = 22
	ErrorCode_ILLEGAL_IDENTITY_CREDENTIAL                           ErrorCode = 23
	ErrorCode_UNKNOWN_CHANNEL                                       ErrorCode = 24
	ErrorCode_NO_SUCH_MESSAGE_BOX                                   ErrorCode = 25
	ErrorCode_NOT_AVAILABLE_MESSAGE_BOX                             ErrorCode = 26
	ErrorCode_CHANNEL_DOES_NOT_MATCH                                ErrorCode = 27
	ErrorCode_NOT_YOUR_MESSAGE                                      ErrorCode = 28
	ErrorCode_MESSAGE_DEFINED_ERROR                                 ErrorCode = 29
	ErrorCode_USER_CANNOT_ACCEPT_PRESENTS                           ErrorCode = 30
	ErrorCode_USER_NOT_STICKER_OWNER                                ErrorCode = 32
	ErrorCode_MAINTENANCE_ERROR                                     ErrorCode = 33
	ErrorCode_ACCOUNT_NOT_MATCHED                                   ErrorCode = 34
	ErrorCode_ABUSE_BLOCK                                           ErrorCode = 35
	ErrorCode_NOT_FRIEND                                            ErrorCode = 36
	ErrorCode_NOT_ALLOWED_CALL                                      ErrorCode = 37
	ErrorCode_BLOCK_FRIEND                                          ErrorCode = 38
	ErrorCode_INCOMPATIBLE_VOIP_VERSION                             ErrorCode = 39
	ErrorCode_INVALID_SNS_ACCESS_TOKEN                              ErrorCode = 40
	ErrorCode_EXTERNAL_SERVICE_NOT_AVAILABLE                        ErrorCode = 41
	ErrorCode_NOT_ALLOWED_ADD_CONTACT                               ErrorCode = 42
	ErrorCode_NOT_CERTIFICATED                                      ErrorCode = 43
	ErrorCode_NOT_ALLOWED_SECONDARY_DEVICE                          ErrorCode = 44
	ErrorCode_INVALID_PIN_CODE                                      ErrorCode = 45
	ErrorCode_NOT_FOUND_IDENTITY_CREDENTIAL                         ErrorCode = 46
	ErrorCode_EXCEED_FILE_MAX_SIZE                                  ErrorCode = 47
	ErrorCode_EXCEED_DAILY_QUOTA                                    ErrorCode = 48
	ErrorCode_NOT_SUPPORT_SEND_FILE                                 ErrorCode = 49
	ErrorCode_MUST_UPGRADE                                          ErrorCode = 50
	ErrorCode_NOT_AVAILABLE_PIN_CODE_SESSION                        ErrorCode = 51
	ErrorCode_EXPIRED_REVISION                                      ErrorCode = 52
	ErrorCode_NOT_YET_PHONE_NUMBER                                  ErrorCode = 54
	ErrorCode_BAD_CALL_NUMBER                                       ErrorCode = 55
	ErrorCode_UNAVAILABLE_CALL_NUMBER                               ErrorCode = 56
	ErrorCode_NOT_SUPPORT_CALL_SERVICE                              ErrorCode = 57
	ErrorCode_CONGESTION_CONTROL                                    ErrorCode = 58
	ErrorCode_NO_BALANCE                                            ErrorCode = 59
	ErrorCode_NOT_PERMITTED_CALLER_ID                               ErrorCode = 60
	ErrorCode_NO_CALLER_ID_LIMIT_EXCEEDED                           ErrorCode = 61
	ErrorCode_CALLER_ID_VERIFICATION_REQUIRED                       ErrorCode = 62
	ErrorCode_NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED ErrorCode = 63
	ErrorCode_MESSAGE_NOT_FOUND                                     ErrorCode = 64
	ErrorCode_INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT              ErrorCode = 65
	ErrorCode_ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED                 ErrorCode = 66
	ErrorCode_ACCOUNT_MIGRATION_PINCODE_BLOCKED                     ErrorCode = 67
	ErrorCode_INVALID_PASSWORD_FORMAT                               ErrorCode = 69
	ErrorCode_FEATURE_RESTRICTED                                    ErrorCode = 70
	ErrorCode_MESSAGE_NOT_DESTRUCTIBLE                              ErrorCode = 71
	ErrorCode_PAID_CALL_REDEEM_FAILED                               ErrorCode = 72
	ErrorCode_PREVENTED_JOIN_BY_TICKET                              ErrorCode = 73
	ErrorCode_SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT               ErrorCode = 75
	ErrorCode_SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY           ErrorCode = 76
	ErrorCode_SECURITY_CENTER_NOT_VERIFIED                          ErrorCode = 77
	ErrorCode_SECURITY_CENTER_BLOCKED_BY_SETTING                    ErrorCode = 78
	ErrorCode_SECURITY_CENTER_BLOCKED                               ErrorCode = 79
	ErrorCode_TALK_PROXY_EXCEPTION                                  ErrorCode = 80
	ErrorCode_E2EE_INVALID_PROTOCOL                                 ErrorCode = 81
	ErrorCode_E2EE_RETRY_ENCRYPT                                    ErrorCode = 82
	ErrorCode_E2EE_UPDATE_SENDER_KEY                                ErrorCode = 83
	ErrorCode_E2EE_UPDATE_RECEIVER_KEY                              ErrorCode = 84
	ErrorCode_E2EE_INVALID_ARGUMENT                                 ErrorCode = 85
	ErrorCode_E2EE_INVALID_VERSION                                  ErrorCode = 86
	ErrorCode_E2EE_SENDER_DISABLED                                  ErrorCode = 87
	ErrorCode_E2EE_RECEIVER_DISABLED                                ErrorCode = 88
	ErrorCode_E2EE_SENDER_NOT_ALLOWED                               ErrorCode = 89
	ErrorCode_E2EE_RECEIVER_NOT_ALLOWED                             ErrorCode = 90
	ErrorCode_E2EE_RESEND_FAIL                                      ErrorCode = 91
	ErrorCode_E2EE_RESEND_OK                                        ErrorCode = 92
	ErrorCode_HITOKOTO_BACKUP_NO_AVAILABLE_DATA                     ErrorCode = 93
	ErrorCode_E2EE_UPDATE_PRIMARY_DEVICE                            ErrorCode = 94
	ErrorCode_SUCCESS                                               ErrorCode = 95
	ErrorCode_CANCEL                                                ErrorCode = 96
	ErrorCode_E2EE_PRIMARY_NOT_SUPPORT                              ErrorCode = 97
	ErrorCode_E2EE_RETRY_PLAIN                                      ErrorCode = 98
	ErrorCode_E2EE_RECREATE_GROUP_KEY                               ErrorCode = 99
	ErrorCode_E2EE_GROUP_TOO_MANY_MEMBERS                           ErrorCode = 100
	ErrorCode_SERVER_BUSY                                           ErrorCode = 101
	ErrorCode_NOT_ALLOWED_ADD_FOLLOW                                ErrorCode = 102
	ErrorCode_INCOMING_FRIEND_REQUEST_LIMIT                         ErrorCode = 103
	ErrorCode_OUTGOING_FRIEND_REQUEST_LIMIT                         ErrorCode = 104
	ErrorCode_OUTGOING_FRIEND_REQUEST_QUOTA                         ErrorCode = 105
	ErrorCode_DUPLICATED                                            ErrorCode = 106
	ErrorCode_BANNED                                                ErrorCode = 107
	ErrorCode_NOT_AN_INVITEE                                        ErrorCode = 108
	ErrorCode_NOT_AN_OUTSIDER                                       ErrorCode = 109
	ErrorCode_EMPTY_GROUP                                           ErrorCode = 111
	ErrorCode_EXCEED_FOLLOW_LIMIT                                   ErrorCode = 112
	ErrorCode_UNSUPPORTED_ACCOUNT_TYPE                              ErrorCode = 113
	ErrorCode_AGREEMENT_REQUIRED                                    ErrorCode = 114
	ErrorCode_SHOULD_RETRY                                          ErrorCode = 115
	ErrorCode_OVER_MAX_CHATS_PER_USER                               ErrorCode = 116
	ErrorCode_NOT_AVAILABLE_API                                     ErrorCode = 117
)

func ErrorCodeFromString

func ErrorCodeFromString(s string) (ErrorCode, error)

func ErrorCodePtr

func ErrorCodePtr(v ErrorCode) *ErrorCode

func (ErrorCode) MarshalText

func (p ErrorCode) MarshalText() ([]byte, error)

func (*ErrorCode) Scan

func (p *ErrorCode) Scan(value interface{}) error

func (ErrorCode) String

func (p ErrorCode) String() string

func (*ErrorCode) UnmarshalText

func (p *ErrorCode) UnmarshalText(text []byte) error

func (*ErrorCode) Value

func (p *ErrorCode) Value() (driver.Value, error)

type IdentityProvider

type IdentityProvider int64
const (
	IdentityProvider_UNKNOWN    IdentityProvider = 0
	IdentityProvider_LINE       IdentityProvider = 1
	IdentityProvider_NAVER_KR   IdentityProvider = 2
	IdentityProvider_LINE_PHONE IdentityProvider = 3
)

func IdentityProviderFromString

func IdentityProviderFromString(s string) (IdentityProvider, error)

func IdentityProviderPtr

func IdentityProviderPtr(v IdentityProvider) *IdentityProvider

func (IdentityProvider) MarshalText

func (p IdentityProvider) MarshalText() ([]byte, error)

func (*IdentityProvider) Scan

func (p *IdentityProvider) Scan(value interface{}) error

func (IdentityProvider) String

func (p IdentityProvider) String() string

func (*IdentityProvider) UnmarshalText

func (p *IdentityProvider) UnmarshalText(text []byte) error

func (*IdentityProvider) Value

func (p *IdentityProvider) Value() (driver.Value, error)

type LoginRequest

type LoginRequest struct {
	Type             LoginType        `thrift:"type,1" db:"type" json:"type"`
	IdentityProvider IdentityProvider `thrift:"identityProvider,2" db:"identityProvider" json:"identityProvider"`
	Identifier       string           `thrift:"identifier,3" db:"identifier" json:"identifier"`
	Password         string           `thrift:"password,4" db:"password" json:"password"`
	KeepLoggedIn     bool             `thrift:"keepLoggedIn,5" db:"keepLoggedIn" json:"keepLoggedIn"`
	AccessLocation   string           `thrift:"accessLocation,6" db:"accessLocation" json:"accessLocation"`
	SystemName       string           `thrift:"systemName,7" db:"systemName" json:"systemName"`
	Certificate      string           `thrift:"certificate,8" db:"certificate" json:"certificate"`
	Verifier         string           `thrift:"verifier,9" db:"verifier" json:"verifier"`
	Secret           []byte           `thrift:"secret,10" db:"secret" json:"secret"`
	E2eeVersion      int32            `thrift:"e2eeVersion,11" db:"e2eeVersion" json:"e2eeVersion"`
}

Attributes:

  • Type
  • IdentityProvider
  • Identifier
  • Password
  • KeepLoggedIn
  • AccessLocation
  • SystemName
  • Certificate
  • Verifier
  • Secret
  • E2eeVersion
var AuthServiceLoginZArgs_LoginRequest_DEFAULT *LoginRequest

func NewLoginRequest

func NewLoginRequest() *LoginRequest

func (*LoginRequest) GetAccessLocation

func (p *LoginRequest) GetAccessLocation() string

func (*LoginRequest) GetCertificate

func (p *LoginRequest) GetCertificate() string

func (*LoginRequest) GetE2eeVersion

func (p *LoginRequest) GetE2eeVersion() int32

func (*LoginRequest) GetIdentifier

func (p *LoginRequest) GetIdentifier() string

func (*LoginRequest) GetIdentityProvider

func (p *LoginRequest) GetIdentityProvider() IdentityProvider

func (*LoginRequest) GetKeepLoggedIn

func (p *LoginRequest) GetKeepLoggedIn() bool

func (*LoginRequest) GetPassword

func (p *LoginRequest) GetPassword() string

func (*LoginRequest) GetSecret

func (p *LoginRequest) GetSecret() []byte

func (*LoginRequest) GetSystemName

func (p *LoginRequest) GetSystemName() string

func (*LoginRequest) GetType

func (p *LoginRequest) GetType() LoginType

func (*LoginRequest) GetVerifier

func (p *LoginRequest) GetVerifier() string

func (*LoginRequest) Read

func (p *LoginRequest) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField1

func (p *LoginRequest) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField10

func (p *LoginRequest) ReadField10(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField11

func (p *LoginRequest) ReadField11(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField2

func (p *LoginRequest) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField3

func (p *LoginRequest) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField4

func (p *LoginRequest) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField5

func (p *LoginRequest) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField6

func (p *LoginRequest) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField7

func (p *LoginRequest) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField8

func (p *LoginRequest) ReadField8(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) ReadField9

func (p *LoginRequest) ReadField9(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginRequest) String

func (p *LoginRequest) String() string

func (*LoginRequest) Write

func (p *LoginRequest) Write(ctx context.Context, oprot thrift.TProtocol) error

type LoginResultType

type LoginResultType int64
const (
	LoginResultType_SUCCESS                LoginResultType = 1
	LoginResultType_REQUIRE_QRCODE         LoginResultType = 2
	LoginResultType_REQUIRE_DEVICE_CONFIRM LoginResultType = 3
	LoginResultType_REQUIRE_SMS_CONFIRM    LoginResultType = 4
)

func LoginResultTypeFromString

func LoginResultTypeFromString(s string) (LoginResultType, error)

func LoginResultTypePtr

func LoginResultTypePtr(v LoginResultType) *LoginResultType

func (LoginResultType) MarshalText

func (p LoginResultType) MarshalText() ([]byte, error)

func (*LoginResultType) Scan

func (p *LoginResultType) Scan(value interface{}) error

func (LoginResultType) String

func (p LoginResultType) String() string

func (*LoginResultType) UnmarshalText

func (p *LoginResultType) UnmarshalText(text []byte) error

func (*LoginResultType) Value

func (p *LoginResultType) Value() (driver.Value, error)

type LoginResult_

type LoginResult_ struct {
	AuthToken            string                   `thrift:"authToken,1" db:"authToken" json:"authToken"`
	Certificate          string                   `thrift:"certificate,2" db:"certificate" json:"certificate"`
	Verifier             string                   `thrift:"verifier,3" db:"verifier" json:"verifier"`
	PinCode              string                   `thrift:"pinCode,4" db:"pinCode" json:"pinCode"`
	Type                 LoginResultType          `thrift:"type,5" db:"type" json:"type"`
	LastPrimaryBindTime  int64                    `thrift:"lastPrimaryBindTime,6" db:"lastPrimaryBindTime" json:"lastPrimaryBindTime"`
	DisplayMessage       string                   `thrift:"displayMessage,7" db:"displayMessage" json:"displayMessage"`
	SessionForSMSConfirm *VerificationSessionData `thrift:"sessionForSMSConfirm,8" db:"sessionForSMSConfirm" json:"sessionForSMSConfirm"`
	TokenIssueResult_    *TokenIssueResult_       `thrift:"tokenIssueResult,9" db:"tokenIssueResult" json:"tokenIssueResult"`
}

Attributes:

  • AuthToken
  • Certificate
  • Verifier
  • PinCode
  • Type
  • LastPrimaryBindTime
  • DisplayMessage
  • SessionForSMSConfirm
  • TokenIssueResult_
var AuthServiceLoginZResult_Success_DEFAULT *LoginResult_

func NewLoginResult_

func NewLoginResult_() *LoginResult_

func (*LoginResult_) GetAuthToken

func (p *LoginResult_) GetAuthToken() string

func (*LoginResult_) GetCertificate

func (p *LoginResult_) GetCertificate() string

func (*LoginResult_) GetDisplayMessage

func (p *LoginResult_) GetDisplayMessage() string

func (*LoginResult_) GetLastPrimaryBindTime

func (p *LoginResult_) GetLastPrimaryBindTime() int64

func (*LoginResult_) GetPinCode

func (p *LoginResult_) GetPinCode() string

func (*LoginResult_) GetSessionForSMSConfirm

func (p *LoginResult_) GetSessionForSMSConfirm() *VerificationSessionData

func (*LoginResult_) GetTokenIssueResult_

func (p *LoginResult_) GetTokenIssueResult_() *TokenIssueResult_

func (*LoginResult_) GetType

func (p *LoginResult_) GetType() LoginResultType

func (*LoginResult_) GetVerifier

func (p *LoginResult_) GetVerifier() string

func (*LoginResult_) IsSetSessionForSMSConfirm

func (p *LoginResult_) IsSetSessionForSMSConfirm() bool

func (*LoginResult_) IsSetTokenIssueResult_

func (p *LoginResult_) IsSetTokenIssueResult_() bool

func (*LoginResult_) Read

func (p *LoginResult_) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField1

func (p *LoginResult_) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField2

func (p *LoginResult_) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField3

func (p *LoginResult_) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField4

func (p *LoginResult_) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField5

func (p *LoginResult_) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField6

func (p *LoginResult_) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField7

func (p *LoginResult_) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField8

func (p *LoginResult_) ReadField8(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) ReadField9

func (p *LoginResult_) ReadField9(ctx context.Context, iprot thrift.TProtocol) error

func (*LoginResult_) String

func (p *LoginResult_) String() string

func (*LoginResult_) Write

func (p *LoginResult_) Write(ctx context.Context, oprot thrift.TProtocol) error

type LoginType

type LoginType int64
const (
	LoginType_ID_CREDENTIAL           LoginType = 0
	LoginType_QRCODE                  LoginType = 1
	LoginType_ID_CREDENTIAL_WITH_E2EE LoginType = 2
)

func LoginTypeFromString

func LoginTypeFromString(s string) (LoginType, error)

func LoginTypePtr

func LoginTypePtr(v LoginType) *LoginType

func (LoginType) MarshalText

func (p LoginType) MarshalText() ([]byte, error)

func (*LoginType) Scan

func (p *LoginType) Scan(value interface{}) error

func (LoginType) String

func (p LoginType) String() string

func (*LoginType) UnmarshalText

func (p *LoginType) UnmarshalText(text []byte) error

func (*LoginType) Value

func (p *LoginType) Value() (driver.Value, error)

type RSAKey

type RSAKey struct {
	Keynm      string `thrift:"keynm,1" db:"keynm" json:"keynm"`
	Nvalue     string `thrift:"nvalue,2" db:"nvalue" json:"nvalue"`
	Evalue     string `thrift:"evalue,3" db:"evalue" json:"evalue"`
	SessionKey string `thrift:"sessionKey,4" db:"sessionKey" json:"sessionKey"`
}

Attributes:

  • Keynm
  • Nvalue
  • Evalue
  • SessionKey
var TalkServiceGetRSAKeyInfoResult_Success_DEFAULT *RSAKey

func NewRSAKey

func NewRSAKey() *RSAKey

func (*RSAKey) GetEvalue

func (p *RSAKey) GetEvalue() string

func (*RSAKey) GetKeynm

func (p *RSAKey) GetKeynm() string

func (*RSAKey) GetNvalue

func (p *RSAKey) GetNvalue() string

func (*RSAKey) GetSessionKey

func (p *RSAKey) GetSessionKey() string

func (*RSAKey) Read

func (p *RSAKey) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*RSAKey) ReadField1

func (p *RSAKey) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*RSAKey) ReadField2

func (p *RSAKey) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*RSAKey) ReadField3

func (p *RSAKey) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*RSAKey) ReadField4

func (p *RSAKey) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*RSAKey) String

func (p *RSAKey) String() string

func (*RSAKey) Write

func (p *RSAKey) Write(ctx context.Context, oprot thrift.TProtocol) error

type TalkException

type TalkException struct {
	Code         ErrorCode         `thrift:"code,1" db:"code" json:"code"`
	Reason       string            `thrift:"reason,2" db:"reason" json:"reason"`
	ParameterMap map[string]string `thrift:"parameterMap,3" db:"parameterMap" json:"parameterMap"`
}

Attributes:

  • Code
  • Reason
  • ParameterMap
var AuthServiceConfirmE2EELoginResult_E_DEFAULT *TalkException
var AuthServiceLoginZResult_E_DEFAULT *TalkException
var AuthServiceLogoutZResult_E_DEFAULT *TalkException
var TalkServiceGetRSAKeyInfoResult_E_DEFAULT *TalkException
var TalkServiceRequestAccountPasswordResetResult_E_DEFAULT *TalkException

func NewTalkException

func NewTalkException() *TalkException

func (*TalkException) Error

func (p *TalkException) Error() string

func (*TalkException) GetCode

func (p *TalkException) GetCode() ErrorCode

func (*TalkException) GetParameterMap

func (p *TalkException) GetParameterMap() map[string]string

func (*TalkException) GetReason

func (p *TalkException) GetReason() string

func (*TalkException) Read

func (p *TalkException) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*TalkException) ReadField1

func (p *TalkException) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*TalkException) ReadField2

func (p *TalkException) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*TalkException) ReadField3

func (p *TalkException) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*TalkException) String

func (p *TalkException) String() string

func (*TalkException) Write

func (p *TalkException) Write(ctx context.Context, oprot thrift.TProtocol) error

type TalkService

type TalkService interface {
	// Parameters:
	//  - Provider
	GetRSAKeyInfo(ctx context.Context, provider IdentityProvider) (r *RSAKey, err error)
	// Parameters:
	//  - Provider
	//  - Identifier
	//  - Locale
	RequestAccountPasswordReset(ctx context.Context, provider IdentityProvider, identifier string, locale string) (err error)
}

type TalkServiceClient

type TalkServiceClient struct {
	// contains filtered or unexported fields
}

func NewTalkServiceClient

func NewTalkServiceClient(c thrift.TClient) *TalkServiceClient

func NewTalkServiceClientProtocol

func NewTalkServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TalkServiceClient

func (*TalkServiceClient) Client_

func (p *TalkServiceClient) Client_() thrift.TClient

func (*TalkServiceClient) GetRSAKeyInfo

func (p *TalkServiceClient) GetRSAKeyInfo(ctx context.Context, provider IdentityProvider) (r *RSAKey, err error)

Parameters:

  • Provider

func (*TalkServiceClient) RequestAccountPasswordReset

func (p *TalkServiceClient) RequestAccountPasswordReset(ctx context.Context, provider IdentityProvider, identifier string, locale string) (err error)

Parameters:

  • Provider
  • Identifier
  • Locale

type TalkServiceGetRSAKeyInfoArgs

type TalkServiceGetRSAKeyInfoArgs struct {
	// unused field # 1
	Provider IdentityProvider `thrift:"provider,2" db:"provider" json:"provider"`
}

Attributes:

  • Provider

func NewTalkServiceGetRSAKeyInfoArgs

func NewTalkServiceGetRSAKeyInfoArgs() *TalkServiceGetRSAKeyInfoArgs

func (*TalkServiceGetRSAKeyInfoArgs) GetProvider

func (*TalkServiceGetRSAKeyInfoArgs) Read

func (*TalkServiceGetRSAKeyInfoArgs) ReadField2

func (*TalkServiceGetRSAKeyInfoArgs) String

func (*TalkServiceGetRSAKeyInfoArgs) Write

type TalkServiceGetRSAKeyInfoResult

type TalkServiceGetRSAKeyInfoResult struct {
	Success *RSAKey        `thrift:"success,0" db:"success" json:"success,omitempty"`
	E       *TalkException `thrift:"e,1" db:"e" json:"e,omitempty"`
}

Attributes:

  • Success
  • E

func NewTalkServiceGetRSAKeyInfoResult

func NewTalkServiceGetRSAKeyInfoResult() *TalkServiceGetRSAKeyInfoResult

func (*TalkServiceGetRSAKeyInfoResult) GetE

func (*TalkServiceGetRSAKeyInfoResult) GetSuccess

func (p *TalkServiceGetRSAKeyInfoResult) GetSuccess() *RSAKey

func (*TalkServiceGetRSAKeyInfoResult) IsSetE

func (*TalkServiceGetRSAKeyInfoResult) IsSetSuccess

func (p *TalkServiceGetRSAKeyInfoResult) IsSetSuccess() bool

func (*TalkServiceGetRSAKeyInfoResult) Read

func (*TalkServiceGetRSAKeyInfoResult) ReadField0

func (*TalkServiceGetRSAKeyInfoResult) ReadField1

func (*TalkServiceGetRSAKeyInfoResult) String

func (*TalkServiceGetRSAKeyInfoResult) Write

type TalkServiceProcessor

type TalkServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewTalkServiceProcessor

func NewTalkServiceProcessor(handler TalkService) *TalkServiceProcessor

func (*TalkServiceProcessor) AddToProcessorMap

func (p *TalkServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*TalkServiceProcessor) GetProcessorFunction

func (p *TalkServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*TalkServiceProcessor) Process

func (p *TalkServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*TalkServiceProcessor) ProcessorMap

func (p *TalkServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type TalkServiceRequestAccountPasswordResetArgs

type TalkServiceRequestAccountPasswordResetArgs struct {
	// unused field # 1
	Identifier string `thrift:"identifier,2" db:"identifier" json:"identifier"`
	// unused field # 3
	Provider IdentityProvider `thrift:"provider,4" db:"provider" json:"provider"`
	Locale   string           `thrift:"locale,5" db:"locale" json:"locale"`
}

Attributes:

  • Provider
  • Identifier
  • Locale

func NewTalkServiceRequestAccountPasswordResetArgs

func NewTalkServiceRequestAccountPasswordResetArgs() *TalkServiceRequestAccountPasswordResetArgs

func (*TalkServiceRequestAccountPasswordResetArgs) GetIdentifier

func (*TalkServiceRequestAccountPasswordResetArgs) GetLocale

func (*TalkServiceRequestAccountPasswordResetArgs) GetProvider

func (*TalkServiceRequestAccountPasswordResetArgs) Read

func (*TalkServiceRequestAccountPasswordResetArgs) ReadField2

func (*TalkServiceRequestAccountPasswordResetArgs) ReadField4

func (*TalkServiceRequestAccountPasswordResetArgs) ReadField5

func (*TalkServiceRequestAccountPasswordResetArgs) String

func (*TalkServiceRequestAccountPasswordResetArgs) Write

type TalkServiceRequestAccountPasswordResetResult

type TalkServiceRequestAccountPasswordResetResult struct {
	E *TalkException `thrift:"e,1" db:"e" json:"e,omitempty"`
}

Attributes:

  • E

func NewTalkServiceRequestAccountPasswordResetResult

func NewTalkServiceRequestAccountPasswordResetResult() *TalkServiceRequestAccountPasswordResetResult

func (*TalkServiceRequestAccountPasswordResetResult) GetE

func (*TalkServiceRequestAccountPasswordResetResult) IsSetE

func (*TalkServiceRequestAccountPasswordResetResult) Read

func (*TalkServiceRequestAccountPasswordResetResult) ReadField1

func (*TalkServiceRequestAccountPasswordResetResult) String

func (*TalkServiceRequestAccountPasswordResetResult) Write

type TokenIssueResult_

type TokenIssueResult_ struct {
	AccessToken               string `thrift:"accessToken,1" db:"accessToken" json:"accessToken"`
	RefreshToken              string `thrift:"refreshToken,2" db:"refreshToken" json:"refreshToken"`
	AppId                     string `thrift:"appId,3" db:"appId" json:"appId"`
	DurationUntilRefreshInSec int64  `thrift:"durationUntilRefreshInSec,4" db:"durationUntilRefreshInSec" json:"durationUntilRefreshInSec"`
}

Attributes:

  • AccessToken
  • RefreshToken
  • AppId
  • DurationUntilRefreshInSec
var LoginResult__TokenIssueResult__DEFAULT *TokenIssueResult_

func NewTokenIssueResult_

func NewTokenIssueResult_() *TokenIssueResult_

func (*TokenIssueResult_) GetAccessToken

func (p *TokenIssueResult_) GetAccessToken() string

func (*TokenIssueResult_) GetAppId

func (p *TokenIssueResult_) GetAppId() string

func (*TokenIssueResult_) GetDurationUntilRefreshInSec

func (p *TokenIssueResult_) GetDurationUntilRefreshInSec() int64

func (*TokenIssueResult_) GetRefreshToken

func (p *TokenIssueResult_) GetRefreshToken() string

func (*TokenIssueResult_) Read

func (p *TokenIssueResult_) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*TokenIssueResult_) ReadField1

func (p *TokenIssueResult_) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*TokenIssueResult_) ReadField2

func (p *TokenIssueResult_) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*TokenIssueResult_) ReadField3

func (p *TokenIssueResult_) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*TokenIssueResult_) ReadField4

func (p *TokenIssueResult_) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*TokenIssueResult_) String

func (p *TokenIssueResult_) String() string

func (*TokenIssueResult_) Write

func (p *TokenIssueResult_) Write(ctx context.Context, oprot thrift.TProtocol) error

type VerificationMethod

type VerificationMethod int64
const (
	VerificationMethod_NO_AVAILABLE    VerificationMethod = 0
	VerificationMethod_PIN_VIA_SMS     VerificationMethod = 1
	VerificationMethod_CALLERID_INDIGO VerificationMethod = 2
	VerificationMethod_PIN_VIA_TTS     VerificationMethod = 4
	VerificationMethod_SKIP            VerificationMethod = 10
)

func VerificationMethodFromString

func VerificationMethodFromString(s string) (VerificationMethod, error)

func VerificationMethodPtr

func VerificationMethodPtr(v VerificationMethod) *VerificationMethod

func (VerificationMethod) MarshalText

func (p VerificationMethod) MarshalText() ([]byte, error)

func (*VerificationMethod) Scan

func (p *VerificationMethod) Scan(value interface{}) error

func (VerificationMethod) String

func (p VerificationMethod) String() string

func (*VerificationMethod) UnmarshalText

func (p *VerificationMethod) UnmarshalText(text []byte) error

func (*VerificationMethod) Value

func (p *VerificationMethod) Value() (driver.Value, error)

type VerificationSessionData

type VerificationSessionData struct {
	SessionId                    string               `thrift:"sessionId,1" db:"sessionId" json:"sessionId"`
	Method                       VerificationMethod   `thrift:"method,2" db:"method" json:"method"`
	Callback                     string               `thrift:"callback,3" db:"callback" json:"callback"`
	NormalizedPhone              string               `thrift:"normalizedPhone,4" db:"normalizedPhone" json:"normalizedPhone"`
	CountryCode                  string               `thrift:"countryCode,5" db:"countryCode" json:"countryCode"`
	NationalSignificantNumber    string               `thrift:"nationalSignificantNumber,6" db:"nationalSignificantNumber" json:"nationalSignificantNumber"`
	AvailableVerificationMethods []VerificationMethod `thrift:"availableVerificationMethods,7" db:"availableVerificationMethods" json:"availableVerificationMethods"`
	CallerIdMask                 string               `thrift:"callerIdMask,8" db:"callerIdMask" json:"callerIdMask"`
}

Attributes:

  • SessionId
  • Method
  • Callback
  • NormalizedPhone
  • CountryCode
  • NationalSignificantNumber
  • AvailableVerificationMethods
  • CallerIdMask
var LoginResult__SessionForSMSConfirm_DEFAULT *VerificationSessionData

func NewVerificationSessionData

func NewVerificationSessionData() *VerificationSessionData

func (*VerificationSessionData) GetAvailableVerificationMethods

func (p *VerificationSessionData) GetAvailableVerificationMethods() []VerificationMethod

func (*VerificationSessionData) GetCallback

func (p *VerificationSessionData) GetCallback() string

func (*VerificationSessionData) GetCallerIdMask

func (p *VerificationSessionData) GetCallerIdMask() string

func (*VerificationSessionData) GetCountryCode

func (p *VerificationSessionData) GetCountryCode() string

func (*VerificationSessionData) GetMethod

func (*VerificationSessionData) GetNationalSignificantNumber

func (p *VerificationSessionData) GetNationalSignificantNumber() string

func (*VerificationSessionData) GetNormalizedPhone

func (p *VerificationSessionData) GetNormalizedPhone() string

func (*VerificationSessionData) GetSessionId

func (p *VerificationSessionData) GetSessionId() string

func (*VerificationSessionData) Read

func (*VerificationSessionData) ReadField1

func (p *VerificationSessionData) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField2

func (p *VerificationSessionData) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField3

func (p *VerificationSessionData) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField4

func (p *VerificationSessionData) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField5

func (p *VerificationSessionData) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField6

func (p *VerificationSessionData) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField7

func (p *VerificationSessionData) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) ReadField8

func (p *VerificationSessionData) ReadField8(ctx context.Context, iprot thrift.TProtocol) error

func (*VerificationSessionData) String

func (p *VerificationSessionData) String() string

func (*VerificationSessionData) Write

Jump to

Keyboard shortcuts

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