Documentation ¶
Index ¶
- Constants
- Variables
- func CheckClassID(classId int32) (ok bool)
- func GetClazzID(clazzName string, layer int) int32
- func GetRPCContextRegisters() map[string]RPCContextTuple
- func MakeCodeType(phoneRegistered, allowFlashCall, currentNumber bool) (int, int)
- func NewTLObjectByClassID(classId int32) mtproto.TLObject
- func RegisterRPCCodeServer(s *grpc.Server, srv RPCCodeServer)
- type PhoneCodeTransaction
- func (m *PhoneCodeTransaction) CalcByteSize(layer int32) int
- func (m *PhoneCodeTransaction) DebugString() string
- func (m *PhoneCodeTransaction) Decode(dBuf *mtproto.DecodeBuf) error
- func (*PhoneCodeTransaction) Descriptor() ([]byte, []int)
- func (m *PhoneCodeTransaction) Encode(x *mtproto.EncodeBuf, layer int32) []byte
- func (m *PhoneCodeTransaction) GetAuthKeyId() int64
- func (m *PhoneCodeTransaction) GetConstructor() TLConstructor
- func (m *PhoneCodeTransaction) GetFlashCallPattern() string
- func (m *PhoneCodeTransaction) GetNextCodeType() int32
- func (m *PhoneCodeTransaction) GetPhone() string
- func (m *PhoneCodeTransaction) GetPhoneCode() string
- func (m *PhoneCodeTransaction) GetPhoneCodeExpired() int32
- func (m *PhoneCodeTransaction) GetPhoneCodeExtraData() string
- func (m *PhoneCodeTransaction) GetPhoneCodeHash() string
- func (m *PhoneCodeTransaction) GetPhoneNumberRegistered() bool
- func (m *PhoneCodeTransaction) GetPredicateName() string
- func (m *PhoneCodeTransaction) GetSentCodeType() int32
- func (m *PhoneCodeTransaction) GetSessionId() int64
- func (m *PhoneCodeTransaction) GetState() int32
- func (this *PhoneCodeTransaction) GoString() string
- func (m *PhoneCodeTransaction) Marshal() (dAtA []byte, err error)
- func (m *PhoneCodeTransaction) MarshalTo(dAtA []byte) (int, error)
- func (m *PhoneCodeTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PhoneCodeTransaction) ProtoMessage()
- func (m *PhoneCodeTransaction) Reset()
- func (m *PhoneCodeTransaction) Size() (n int)
- func (m *PhoneCodeTransaction) String() string
- func (m *PhoneCodeTransaction) ToAuthSentCode() *mtproto.Auth_SentCode
- func (m *PhoneCodeTransaction) To_PhoneCodeTransaction() *TLPhoneCodeTransaction
- func (m *PhoneCodeTransaction) Unmarshal(dAtA []byte) error
- func (m *PhoneCodeTransaction) XXX_DiscardUnknown()
- func (m *PhoneCodeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PhoneCodeTransaction) XXX_Merge(src proto.Message)
- func (m *PhoneCodeTransaction) XXX_Size() int
- func (m *PhoneCodeTransaction) XXX_Unmarshal(b []byte) error
- type RPCCodeClient
- type RPCCodeServer
- type RPCContextTuple
- type TLCodeCreatePhoneCode
- func (m *TLCodeCreatePhoneCode) CalcByteSize(layer int32) int
- func (m *TLCodeCreatePhoneCode) DebugString() string
- func (m *TLCodeCreatePhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
- func (*TLCodeCreatePhoneCode) Descriptor() ([]byte, []int)
- func (m *TLCodeCreatePhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
- func (m *TLCodeCreatePhoneCode) GetAuthKeyId() int64
- func (m *TLCodeCreatePhoneCode) GetConstructor() TLConstructor
- func (m *TLCodeCreatePhoneCode) GetNextCodeType() int32
- func (m *TLCodeCreatePhoneCode) GetPhone() string
- func (m *TLCodeCreatePhoneCode) GetPhoneNumberRegistered() bool
- func (m *TLCodeCreatePhoneCode) GetSentCodeType() int32
- func (m *TLCodeCreatePhoneCode) GetSessionId() int64
- func (m *TLCodeCreatePhoneCode) GetState() int32
- func (this *TLCodeCreatePhoneCode) GoString() string
- func (m *TLCodeCreatePhoneCode) Marshal() (dAtA []byte, err error)
- func (m *TLCodeCreatePhoneCode) MarshalTo(dAtA []byte) (int, error)
- func (m *TLCodeCreatePhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLCodeCreatePhoneCode) ProtoMessage()
- func (m *TLCodeCreatePhoneCode) Reset()
- func (m *TLCodeCreatePhoneCode) Size() (n int)
- func (m *TLCodeCreatePhoneCode) String() string
- func (m *TLCodeCreatePhoneCode) Unmarshal(dAtA []byte) error
- func (m *TLCodeCreatePhoneCode) XXX_DiscardUnknown()
- func (m *TLCodeCreatePhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLCodeCreatePhoneCode) XXX_Merge(src proto.Message)
- func (m *TLCodeCreatePhoneCode) XXX_Size() int
- func (m *TLCodeCreatePhoneCode) XXX_Unmarshal(b []byte) error
- type TLCodeDeletePhoneCode
- func (m *TLCodeDeletePhoneCode) CalcByteSize(layer int32) int
- func (m *TLCodeDeletePhoneCode) DebugString() string
- func (m *TLCodeDeletePhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
- func (*TLCodeDeletePhoneCode) Descriptor() ([]byte, []int)
- func (m *TLCodeDeletePhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
- func (m *TLCodeDeletePhoneCode) GetAuthKeyId() int64
- func (m *TLCodeDeletePhoneCode) GetConstructor() TLConstructor
- func (m *TLCodeDeletePhoneCode) GetPhone() string
- func (m *TLCodeDeletePhoneCode) GetPhoneCodeHash() string
- func (this *TLCodeDeletePhoneCode) GoString() string
- func (m *TLCodeDeletePhoneCode) Marshal() (dAtA []byte, err error)
- func (m *TLCodeDeletePhoneCode) MarshalTo(dAtA []byte) (int, error)
- func (m *TLCodeDeletePhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLCodeDeletePhoneCode) ProtoMessage()
- func (m *TLCodeDeletePhoneCode) Reset()
- func (m *TLCodeDeletePhoneCode) Size() (n int)
- func (m *TLCodeDeletePhoneCode) String() string
- func (m *TLCodeDeletePhoneCode) Unmarshal(dAtA []byte) error
- func (m *TLCodeDeletePhoneCode) XXX_DiscardUnknown()
- func (m *TLCodeDeletePhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLCodeDeletePhoneCode) XXX_Merge(src proto.Message)
- func (m *TLCodeDeletePhoneCode) XXX_Size() int
- func (m *TLCodeDeletePhoneCode) XXX_Unmarshal(b []byte) error
- type TLCodeGetPhoneCode
- func (m *TLCodeGetPhoneCode) CalcByteSize(layer int32) int
- func (m *TLCodeGetPhoneCode) DebugString() string
- func (m *TLCodeGetPhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
- func (*TLCodeGetPhoneCode) Descriptor() ([]byte, []int)
- func (m *TLCodeGetPhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
- func (m *TLCodeGetPhoneCode) GetAuthKeyId() int64
- func (m *TLCodeGetPhoneCode) GetConstructor() TLConstructor
- func (m *TLCodeGetPhoneCode) GetPhone() string
- func (m *TLCodeGetPhoneCode) GetPhoneCodeHash() string
- func (this *TLCodeGetPhoneCode) GoString() string
- func (m *TLCodeGetPhoneCode) Marshal() (dAtA []byte, err error)
- func (m *TLCodeGetPhoneCode) MarshalTo(dAtA []byte) (int, error)
- func (m *TLCodeGetPhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLCodeGetPhoneCode) ProtoMessage()
- func (m *TLCodeGetPhoneCode) Reset()
- func (m *TLCodeGetPhoneCode) Size() (n int)
- func (m *TLCodeGetPhoneCode) String() string
- func (m *TLCodeGetPhoneCode) Unmarshal(dAtA []byte) error
- func (m *TLCodeGetPhoneCode) XXX_DiscardUnknown()
- func (m *TLCodeGetPhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLCodeGetPhoneCode) XXX_Merge(src proto.Message)
- func (m *TLCodeGetPhoneCode) XXX_Size() int
- func (m *TLCodeGetPhoneCode) XXX_Unmarshal(b []byte) error
- type TLCodeUpdatePhoneCodeData
- func (m *TLCodeUpdatePhoneCodeData) CalcByteSize(layer int32) int
- func (m *TLCodeUpdatePhoneCodeData) DebugString() string
- func (m *TLCodeUpdatePhoneCodeData) Decode(dBuf *mtproto.DecodeBuf) error
- func (*TLCodeUpdatePhoneCodeData) Descriptor() ([]byte, []int)
- func (m *TLCodeUpdatePhoneCodeData) Encode(x *mtproto.EncodeBuf, layer int32) error
- func (m *TLCodeUpdatePhoneCodeData) GetAuthKeyId() int64
- func (m *TLCodeUpdatePhoneCodeData) GetCodeData() *PhoneCodeTransaction
- func (m *TLCodeUpdatePhoneCodeData) GetConstructor() TLConstructor
- func (m *TLCodeUpdatePhoneCodeData) GetPhone() string
- func (m *TLCodeUpdatePhoneCodeData) GetPhoneCodeHash() string
- func (this *TLCodeUpdatePhoneCodeData) GoString() string
- func (m *TLCodeUpdatePhoneCodeData) Marshal() (dAtA []byte, err error)
- func (m *TLCodeUpdatePhoneCodeData) MarshalTo(dAtA []byte) (int, error)
- func (m *TLCodeUpdatePhoneCodeData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLCodeUpdatePhoneCodeData) ProtoMessage()
- func (m *TLCodeUpdatePhoneCodeData) Reset()
- func (m *TLCodeUpdatePhoneCodeData) Size() (n int)
- func (m *TLCodeUpdatePhoneCodeData) String() string
- func (m *TLCodeUpdatePhoneCodeData) Unmarshal(dAtA []byte) error
- func (m *TLCodeUpdatePhoneCodeData) XXX_DiscardUnknown()
- func (m *TLCodeUpdatePhoneCodeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLCodeUpdatePhoneCodeData) XXX_Merge(src proto.Message)
- func (m *TLCodeUpdatePhoneCodeData) XXX_Size() int
- func (m *TLCodeUpdatePhoneCodeData) XXX_Unmarshal(b []byte) error
- type TLConstructor
- type TLPhoneCodeTransaction
- func (m *TLPhoneCodeTransaction) CalcByteSize(layer int32) int
- func (m *TLPhoneCodeTransaction) DebugString() string
- func (m *TLPhoneCodeTransaction) Decode(dBuf *mtproto.DecodeBuf) error
- func (*TLPhoneCodeTransaction) Descriptor() ([]byte, []int)
- func (m *TLPhoneCodeTransaction) Encode(x *mtproto.EncodeBuf, layer int32) error
- func (m *TLPhoneCodeTransaction) GetAuthKeyId() int64
- func (m *TLPhoneCodeTransaction) GetData2() *PhoneCodeTransaction
- func (m *TLPhoneCodeTransaction) GetFlashCallPattern() string
- func (m *TLPhoneCodeTransaction) GetNextCodeType() int32
- func (m *TLPhoneCodeTransaction) GetPhone() string
- func (m *TLPhoneCodeTransaction) GetPhoneCode() string
- func (m *TLPhoneCodeTransaction) GetPhoneCodeExpired() int32
- func (m *TLPhoneCodeTransaction) GetPhoneCodeExtraData() string
- func (m *TLPhoneCodeTransaction) GetPhoneCodeHash() string
- func (m *TLPhoneCodeTransaction) GetPhoneNumberRegistered() bool
- func (m *TLPhoneCodeTransaction) GetPredicateName() string
- func (m *TLPhoneCodeTransaction) GetSentCodeType() int32
- func (m *TLPhoneCodeTransaction) GetSessionId() int64
- func (m *TLPhoneCodeTransaction) GetState() int32
- func (this *TLPhoneCodeTransaction) GoString() string
- func (m *TLPhoneCodeTransaction) Marshal() (dAtA []byte, err error)
- func (m *TLPhoneCodeTransaction) MarshalTo(dAtA []byte) (int, error)
- func (m *TLPhoneCodeTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLPhoneCodeTransaction) ProtoMessage()
- func (m *TLPhoneCodeTransaction) Reset()
- func (m *TLPhoneCodeTransaction) SetAuthKeyId(v int64)
- func (m *TLPhoneCodeTransaction) SetFlashCallPattern(v string)
- func (m *TLPhoneCodeTransaction) SetNextCodeType(v int32)
- func (m *TLPhoneCodeTransaction) SetPhone(v string)
- func (m *TLPhoneCodeTransaction) SetPhoneCode(v string)
- func (m *TLPhoneCodeTransaction) SetPhoneCodeExpired(v int32)
- func (m *TLPhoneCodeTransaction) SetPhoneCodeExtraData(v string)
- func (m *TLPhoneCodeTransaction) SetPhoneCodeHash(v string)
- func (m *TLPhoneCodeTransaction) SetPhoneNumberRegistered(v bool)
- func (m *TLPhoneCodeTransaction) SetSentCodeType(v int32)
- func (m *TLPhoneCodeTransaction) SetSessionId(v int64)
- func (m *TLPhoneCodeTransaction) SetState(v int32)
- func (m *TLPhoneCodeTransaction) Size() (n int)
- func (m *TLPhoneCodeTransaction) String() string
- func (m *TLPhoneCodeTransaction) To_PhoneCodeTransaction() *PhoneCodeTransaction
- func (m *TLPhoneCodeTransaction) Unmarshal(dAtA []byte) error
- func (m *TLPhoneCodeTransaction) XXX_DiscardUnknown()
- func (m *TLPhoneCodeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLPhoneCodeTransaction) XXX_Merge(src proto.Message)
- func (m *TLPhoneCodeTransaction) XXX_Size() int
- func (m *TLPhoneCodeTransaction) XXX_Unmarshal(b []byte) error
- type UnimplementedRPCCodeServer
- func (*UnimplementedRPCCodeServer) CodeCreatePhoneCode(ctx context.Context, req *TLCodeCreatePhoneCode) (*PhoneCodeTransaction, error)
- func (*UnimplementedRPCCodeServer) CodeDeletePhoneCode(ctx context.Context, req *TLCodeDeletePhoneCode) (*mtproto.Bool, error)
- func (*UnimplementedRPCCodeServer) CodeGetPhoneCode(ctx context.Context, req *TLCodeGetPhoneCode) (*PhoneCodeTransaction, error)
- func (*UnimplementedRPCCodeServer) CodeUpdatePhoneCodeData(ctx context.Context, req *TLCodeUpdatePhoneCodeData) (*mtproto.Bool, error)
Constants ¶
const ( Predicate_phoneCodeTransaction = "phoneCodeTransaction" Predicate_code_createPhoneCode = "code_createPhoneCode" Predicate_code_getPhoneCode = "code_getPhoneCode" Predicate_code_deletePhoneCode = "code_deletePhoneCode" Predicate_code_updatePhoneCodeData = "code_updatePhoneCodeData" )
const ( CodeTypeNone = 0 CodeTypeApp = 1 CodeTypeSms = 2 CodeTypeCall = 3 CodeTypeFlashCall = 4 )
const ( CodeStateOk = 1 CodeStateSend = 2 CodeStateSent = 3 CodeStateReSent = 6 CodeStateSignIn = 4 CodeStateSignUp = 5 CodeStateDeleted = -1 )
Variables ¶
var ( ErrInvalidLengthCodeTl = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodeTl = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCodeTl = fmt.Errorf("proto: unexpected end of group") )
var TLConstructor_name = map[int32]string{
0: "CRC32_UNKNOWN",
-2089576808: "CRC32_phoneCodeTransaction",
1612963998: "CRC32_code_createPhoneCode",
1638179065: "CRC32_code_getPhoneCode",
-1498387888: "CRC32_code_deletePhoneCode",
-1231746411: "CRC32_code_updatePhoneCodeData",
}
var TLConstructor_value = map[string]int32{
"CRC32_UNKNOWN": 0,
"CRC32_phoneCodeTransaction": -2089576808,
"CRC32_code_createPhoneCode": 1612963998,
"CRC32_code_getPhoneCode": 1638179065,
"CRC32_code_deletePhoneCode": -1498387888,
"CRC32_code_updatePhoneCodeData": -1231746411,
}
Functions ¶
func CheckClassID ¶
func GetClazzID ¶
func GetRPCContextRegisters ¶
func GetRPCContextRegisters() map[string]RPCContextTuple
func MakeCodeType ¶
FIXME(@benqi): ignore it.
func NewTLObjectByClassID ¶
func RegisterRPCCodeServer ¶
func RegisterRPCCodeServer(s *grpc.Server, srv RPCCodeServer)
Types ¶
type PhoneCodeTransaction ¶
type PhoneCodeTransaction struct { PredicateName string `protobuf:"bytes,1,opt,name=predicate_name,json=predicateName,proto3" json:"predicate_name,omitempty"` Constructor TLConstructor `protobuf:"varint,2,opt,name=constructor,proto3,enum=code.TLConstructor" json:"constructor,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` SessionId int64 `protobuf:"varint,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` PhoneNumberRegistered bool `` /* 127-byte string literal not displayed */ PhoneCode string `protobuf:"bytes,7,opt,name=phone_code,json=phoneCode,proto3" json:"phone_code,omitempty"` PhoneCodeHash string `protobuf:"bytes,8,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` PhoneCodeExpired int32 `protobuf:"varint,9,opt,name=phone_code_expired,json=phoneCodeExpired,proto3" json:"phone_code_expired,omitempty"` PhoneCodeExtraData string `protobuf:"bytes,10,opt,name=phone_code_extra_data,json=phoneCodeExtraData,proto3" json:"phone_code_extra_data,omitempty"` SentCodeType int32 `protobuf:"varint,11,opt,name=sent_code_type,json=sentCodeType,proto3" json:"sent_code_type,omitempty"` FlashCallPattern string `protobuf:"bytes,12,opt,name=flash_call_pattern,json=flashCallPattern,proto3" json:"flash_call_pattern,omitempty"` NextCodeType int32 `protobuf:"varint,13,opt,name=next_code_type,json=nextCodeType,proto3" json:"next_code_type,omitempty"` State int32 `protobuf:"varint,14,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PhoneCodeTransaction <--
- TL_phoneCodeTransaction
func (*PhoneCodeTransaction) CalcByteSize ¶
func (m *PhoneCodeTransaction) CalcByteSize(layer int32) int
func (*PhoneCodeTransaction) DebugString ¶
func (m *PhoneCodeTransaction) DebugString() string
func (*PhoneCodeTransaction) Decode ¶
func (m *PhoneCodeTransaction) Decode(dBuf *mtproto.DecodeBuf) error
func (*PhoneCodeTransaction) Descriptor ¶
func (*PhoneCodeTransaction) Descriptor() ([]byte, []int)
func (*PhoneCodeTransaction) Encode ¶
func (m *PhoneCodeTransaction) Encode(x *mtproto.EncodeBuf, layer int32) []byte
func (*PhoneCodeTransaction) GetAuthKeyId ¶
func (m *PhoneCodeTransaction) GetAuthKeyId() int64
func (*PhoneCodeTransaction) GetConstructor ¶
func (m *PhoneCodeTransaction) GetConstructor() TLConstructor
func (*PhoneCodeTransaction) GetFlashCallPattern ¶
func (m *PhoneCodeTransaction) GetFlashCallPattern() string
func (*PhoneCodeTransaction) GetNextCodeType ¶
func (m *PhoneCodeTransaction) GetNextCodeType() int32
func (*PhoneCodeTransaction) GetPhone ¶
func (m *PhoneCodeTransaction) GetPhone() string
func (*PhoneCodeTransaction) GetPhoneCode ¶
func (m *PhoneCodeTransaction) GetPhoneCode() string
func (*PhoneCodeTransaction) GetPhoneCodeExpired ¶
func (m *PhoneCodeTransaction) GetPhoneCodeExpired() int32
func (*PhoneCodeTransaction) GetPhoneCodeExtraData ¶
func (m *PhoneCodeTransaction) GetPhoneCodeExtraData() string
func (*PhoneCodeTransaction) GetPhoneCodeHash ¶
func (m *PhoneCodeTransaction) GetPhoneCodeHash() string
func (*PhoneCodeTransaction) GetPhoneNumberRegistered ¶
func (m *PhoneCodeTransaction) GetPhoneNumberRegistered() bool
func (*PhoneCodeTransaction) GetPredicateName ¶
func (m *PhoneCodeTransaction) GetPredicateName() string
func (*PhoneCodeTransaction) GetSentCodeType ¶
func (m *PhoneCodeTransaction) GetSentCodeType() int32
func (*PhoneCodeTransaction) GetSessionId ¶
func (m *PhoneCodeTransaction) GetSessionId() int64
func (*PhoneCodeTransaction) GetState ¶
func (m *PhoneCodeTransaction) GetState() int32
func (*PhoneCodeTransaction) GoString ¶
func (this *PhoneCodeTransaction) GoString() string
func (*PhoneCodeTransaction) Marshal ¶
func (m *PhoneCodeTransaction) Marshal() (dAtA []byte, err error)
func (*PhoneCodeTransaction) MarshalTo ¶
func (m *PhoneCodeTransaction) MarshalTo(dAtA []byte) (int, error)
func (*PhoneCodeTransaction) MarshalToSizedBuffer ¶
func (m *PhoneCodeTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PhoneCodeTransaction) ProtoMessage ¶
func (*PhoneCodeTransaction) ProtoMessage()
func (*PhoneCodeTransaction) Reset ¶
func (m *PhoneCodeTransaction) Reset()
func (*PhoneCodeTransaction) Size ¶
func (m *PhoneCodeTransaction) Size() (n int)
func (*PhoneCodeTransaction) String ¶
func (m *PhoneCodeTransaction) String() string
func (*PhoneCodeTransaction) ToAuthSentCode ¶
func (m *PhoneCodeTransaction) ToAuthSentCode() *mtproto.Auth_SentCode
ToAuthSentCode /////////////////////////////////////////////////////////////////////////////////////////////////// TODO(@benqi): 如果手机号已经注册,检查是否有其他设备在线,有则使用sentCodeTypeApp
否则使用sentCodeTypeSms
TODO(@benqi): 有则使用sentCodeTypeFlashCall和entCodeTypeCall??
func (*PhoneCodeTransaction) To_PhoneCodeTransaction ¶
func (m *PhoneCodeTransaction) To_PhoneCodeTransaction() *TLPhoneCodeTransaction
To_PhoneCodeTransaction
func (*PhoneCodeTransaction) Unmarshal ¶
func (m *PhoneCodeTransaction) Unmarshal(dAtA []byte) error
func (*PhoneCodeTransaction) XXX_DiscardUnknown ¶
func (m *PhoneCodeTransaction) XXX_DiscardUnknown()
func (*PhoneCodeTransaction) XXX_Marshal ¶
func (m *PhoneCodeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PhoneCodeTransaction) XXX_Merge ¶
func (m *PhoneCodeTransaction) XXX_Merge(src proto.Message)
func (*PhoneCodeTransaction) XXX_Size ¶
func (m *PhoneCodeTransaction) XXX_Size() int
func (*PhoneCodeTransaction) XXX_Unmarshal ¶
func (m *PhoneCodeTransaction) XXX_Unmarshal(b []byte) error
type RPCCodeClient ¶
type RPCCodeClient interface { CodeCreatePhoneCode(ctx context.Context, in *TLCodeCreatePhoneCode, opts ...grpc.CallOption) (*PhoneCodeTransaction, error) CodeGetPhoneCode(ctx context.Context, in *TLCodeGetPhoneCode, opts ...grpc.CallOption) (*PhoneCodeTransaction, error) CodeDeletePhoneCode(ctx context.Context, in *TLCodeDeletePhoneCode, opts ...grpc.CallOption) (*mtproto.Bool, error) CodeUpdatePhoneCodeData(ctx context.Context, in *TLCodeUpdatePhoneCodeData, opts ...grpc.CallOption) (*mtproto.Bool, error) }
RPCCodeClient is the client API for RPCCode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCCodeClient ¶
func NewRPCCodeClient(cc *grpc.ClientConn) RPCCodeClient
type RPCCodeServer ¶
type RPCCodeServer interface { CodeCreatePhoneCode(context.Context, *TLCodeCreatePhoneCode) (*PhoneCodeTransaction, error) CodeGetPhoneCode(context.Context, *TLCodeGetPhoneCode) (*PhoneCodeTransaction, error) CodeDeletePhoneCode(context.Context, *TLCodeDeletePhoneCode) (*mtproto.Bool, error) CodeUpdatePhoneCodeData(context.Context, *TLCodeUpdatePhoneCodeData) (*mtproto.Bool, error) }
RPCCodeServer is the server API for RPCCode service.
type RPCContextTuple ¶
type RPCContextTuple struct { Method string NewReplyFunc newRPCReplyFunc }
func FindRPCContextTuple ¶
func FindRPCContextTuple(t interface{}) *RPCContextTuple
type TLCodeCreatePhoneCode ¶
type TLCodeCreatePhoneCode struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=code.TLConstructor" json:"constructor,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` SessionId int64 `protobuf:"varint,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` PhoneNumberRegistered bool `` /* 127-byte string literal not displayed */ SentCodeType int32 `protobuf:"varint,7,opt,name=sent_code_type,json=sentCodeType,proto3" json:"sent_code_type,omitempty"` NextCodeType int32 `protobuf:"varint,8,opt,name=next_code_type,json=nextCodeType,proto3" json:"next_code_type,omitempty"` State int32 `protobuf:"varint,9,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
--------------------------------------------------------------------------------------------
func (*TLCodeCreatePhoneCode) CalcByteSize ¶
func (m *TLCodeCreatePhoneCode) CalcByteSize(layer int32) int
func (*TLCodeCreatePhoneCode) DebugString ¶
func (m *TLCodeCreatePhoneCode) DebugString() string
func (*TLCodeCreatePhoneCode) Decode ¶
func (m *TLCodeCreatePhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
func (*TLCodeCreatePhoneCode) Descriptor ¶
func (*TLCodeCreatePhoneCode) Descriptor() ([]byte, []int)
func (*TLCodeCreatePhoneCode) Encode ¶
func (m *TLCodeCreatePhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
func (*TLCodeCreatePhoneCode) GetAuthKeyId ¶
func (m *TLCodeCreatePhoneCode) GetAuthKeyId() int64
func (*TLCodeCreatePhoneCode) GetConstructor ¶
func (m *TLCodeCreatePhoneCode) GetConstructor() TLConstructor
func (*TLCodeCreatePhoneCode) GetNextCodeType ¶
func (m *TLCodeCreatePhoneCode) GetNextCodeType() int32
func (*TLCodeCreatePhoneCode) GetPhone ¶
func (m *TLCodeCreatePhoneCode) GetPhone() string
func (*TLCodeCreatePhoneCode) GetPhoneNumberRegistered ¶
func (m *TLCodeCreatePhoneCode) GetPhoneNumberRegistered() bool
func (*TLCodeCreatePhoneCode) GetSentCodeType ¶
func (m *TLCodeCreatePhoneCode) GetSentCodeType() int32
func (*TLCodeCreatePhoneCode) GetSessionId ¶
func (m *TLCodeCreatePhoneCode) GetSessionId() int64
func (*TLCodeCreatePhoneCode) GetState ¶
func (m *TLCodeCreatePhoneCode) GetState() int32
func (*TLCodeCreatePhoneCode) GoString ¶
func (this *TLCodeCreatePhoneCode) GoString() string
func (*TLCodeCreatePhoneCode) Marshal ¶
func (m *TLCodeCreatePhoneCode) Marshal() (dAtA []byte, err error)
func (*TLCodeCreatePhoneCode) MarshalTo ¶
func (m *TLCodeCreatePhoneCode) MarshalTo(dAtA []byte) (int, error)
func (*TLCodeCreatePhoneCode) MarshalToSizedBuffer ¶
func (m *TLCodeCreatePhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TLCodeCreatePhoneCode) ProtoMessage ¶
func (*TLCodeCreatePhoneCode) ProtoMessage()
func (*TLCodeCreatePhoneCode) Reset ¶
func (m *TLCodeCreatePhoneCode) Reset()
func (*TLCodeCreatePhoneCode) Size ¶
func (m *TLCodeCreatePhoneCode) Size() (n int)
func (*TLCodeCreatePhoneCode) String ¶
func (m *TLCodeCreatePhoneCode) String() string
func (*TLCodeCreatePhoneCode) Unmarshal ¶
func (m *TLCodeCreatePhoneCode) Unmarshal(dAtA []byte) error
func (*TLCodeCreatePhoneCode) XXX_DiscardUnknown ¶
func (m *TLCodeCreatePhoneCode) XXX_DiscardUnknown()
func (*TLCodeCreatePhoneCode) XXX_Marshal ¶
func (m *TLCodeCreatePhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLCodeCreatePhoneCode) XXX_Merge ¶
func (m *TLCodeCreatePhoneCode) XXX_Merge(src proto.Message)
func (*TLCodeCreatePhoneCode) XXX_Size ¶
func (m *TLCodeCreatePhoneCode) XXX_Size() int
func (*TLCodeCreatePhoneCode) XXX_Unmarshal ¶
func (m *TLCodeCreatePhoneCode) XXX_Unmarshal(b []byte) error
type TLCodeDeletePhoneCode ¶
type TLCodeDeletePhoneCode struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=code.TLConstructor" json:"constructor,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` PhoneCodeHash string `protobuf:"bytes,5,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
--------------------------------------------------------------------------------------------
func (*TLCodeDeletePhoneCode) CalcByteSize ¶
func (m *TLCodeDeletePhoneCode) CalcByteSize(layer int32) int
func (*TLCodeDeletePhoneCode) DebugString ¶
func (m *TLCodeDeletePhoneCode) DebugString() string
func (*TLCodeDeletePhoneCode) Decode ¶
func (m *TLCodeDeletePhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
func (*TLCodeDeletePhoneCode) Descriptor ¶
func (*TLCodeDeletePhoneCode) Descriptor() ([]byte, []int)
func (*TLCodeDeletePhoneCode) Encode ¶
func (m *TLCodeDeletePhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
func (*TLCodeDeletePhoneCode) GetAuthKeyId ¶
func (m *TLCodeDeletePhoneCode) GetAuthKeyId() int64
func (*TLCodeDeletePhoneCode) GetConstructor ¶
func (m *TLCodeDeletePhoneCode) GetConstructor() TLConstructor
func (*TLCodeDeletePhoneCode) GetPhone ¶
func (m *TLCodeDeletePhoneCode) GetPhone() string
func (*TLCodeDeletePhoneCode) GetPhoneCodeHash ¶
func (m *TLCodeDeletePhoneCode) GetPhoneCodeHash() string
func (*TLCodeDeletePhoneCode) GoString ¶
func (this *TLCodeDeletePhoneCode) GoString() string
func (*TLCodeDeletePhoneCode) Marshal ¶
func (m *TLCodeDeletePhoneCode) Marshal() (dAtA []byte, err error)
func (*TLCodeDeletePhoneCode) MarshalTo ¶
func (m *TLCodeDeletePhoneCode) MarshalTo(dAtA []byte) (int, error)
func (*TLCodeDeletePhoneCode) MarshalToSizedBuffer ¶
func (m *TLCodeDeletePhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TLCodeDeletePhoneCode) ProtoMessage ¶
func (*TLCodeDeletePhoneCode) ProtoMessage()
func (*TLCodeDeletePhoneCode) Reset ¶
func (m *TLCodeDeletePhoneCode) Reset()
func (*TLCodeDeletePhoneCode) Size ¶
func (m *TLCodeDeletePhoneCode) Size() (n int)
func (*TLCodeDeletePhoneCode) String ¶
func (m *TLCodeDeletePhoneCode) String() string
func (*TLCodeDeletePhoneCode) Unmarshal ¶
func (m *TLCodeDeletePhoneCode) Unmarshal(dAtA []byte) error
func (*TLCodeDeletePhoneCode) XXX_DiscardUnknown ¶
func (m *TLCodeDeletePhoneCode) XXX_DiscardUnknown()
func (*TLCodeDeletePhoneCode) XXX_Marshal ¶
func (m *TLCodeDeletePhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLCodeDeletePhoneCode) XXX_Merge ¶
func (m *TLCodeDeletePhoneCode) XXX_Merge(src proto.Message)
func (*TLCodeDeletePhoneCode) XXX_Size ¶
func (m *TLCodeDeletePhoneCode) XXX_Size() int
func (*TLCodeDeletePhoneCode) XXX_Unmarshal ¶
func (m *TLCodeDeletePhoneCode) XXX_Unmarshal(b []byte) error
type TLCodeGetPhoneCode ¶
type TLCodeGetPhoneCode struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=code.TLConstructor" json:"constructor,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` PhoneCodeHash string `protobuf:"bytes,5,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
--------------------------------------------------------------------------------------------
func (*TLCodeGetPhoneCode) CalcByteSize ¶
func (m *TLCodeGetPhoneCode) CalcByteSize(layer int32) int
func (*TLCodeGetPhoneCode) DebugString ¶
func (m *TLCodeGetPhoneCode) DebugString() string
func (*TLCodeGetPhoneCode) Decode ¶
func (m *TLCodeGetPhoneCode) Decode(dBuf *mtproto.DecodeBuf) error
func (*TLCodeGetPhoneCode) Descriptor ¶
func (*TLCodeGetPhoneCode) Descriptor() ([]byte, []int)
func (*TLCodeGetPhoneCode) Encode ¶
func (m *TLCodeGetPhoneCode) Encode(x *mtproto.EncodeBuf, layer int32) error
func (*TLCodeGetPhoneCode) GetAuthKeyId ¶
func (m *TLCodeGetPhoneCode) GetAuthKeyId() int64
func (*TLCodeGetPhoneCode) GetConstructor ¶
func (m *TLCodeGetPhoneCode) GetConstructor() TLConstructor
func (*TLCodeGetPhoneCode) GetPhone ¶
func (m *TLCodeGetPhoneCode) GetPhone() string
func (*TLCodeGetPhoneCode) GetPhoneCodeHash ¶
func (m *TLCodeGetPhoneCode) GetPhoneCodeHash() string
func (*TLCodeGetPhoneCode) GoString ¶
func (this *TLCodeGetPhoneCode) GoString() string
func (*TLCodeGetPhoneCode) Marshal ¶
func (m *TLCodeGetPhoneCode) Marshal() (dAtA []byte, err error)
func (*TLCodeGetPhoneCode) MarshalTo ¶
func (m *TLCodeGetPhoneCode) MarshalTo(dAtA []byte) (int, error)
func (*TLCodeGetPhoneCode) MarshalToSizedBuffer ¶
func (m *TLCodeGetPhoneCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TLCodeGetPhoneCode) ProtoMessage ¶
func (*TLCodeGetPhoneCode) ProtoMessage()
func (*TLCodeGetPhoneCode) Reset ¶
func (m *TLCodeGetPhoneCode) Reset()
func (*TLCodeGetPhoneCode) Size ¶
func (m *TLCodeGetPhoneCode) Size() (n int)
func (*TLCodeGetPhoneCode) String ¶
func (m *TLCodeGetPhoneCode) String() string
func (*TLCodeGetPhoneCode) Unmarshal ¶
func (m *TLCodeGetPhoneCode) Unmarshal(dAtA []byte) error
func (*TLCodeGetPhoneCode) XXX_DiscardUnknown ¶
func (m *TLCodeGetPhoneCode) XXX_DiscardUnknown()
func (*TLCodeGetPhoneCode) XXX_Marshal ¶
func (m *TLCodeGetPhoneCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLCodeGetPhoneCode) XXX_Merge ¶
func (m *TLCodeGetPhoneCode) XXX_Merge(src proto.Message)
func (*TLCodeGetPhoneCode) XXX_Size ¶
func (m *TLCodeGetPhoneCode) XXX_Size() int
func (*TLCodeGetPhoneCode) XXX_Unmarshal ¶
func (m *TLCodeGetPhoneCode) XXX_Unmarshal(b []byte) error
type TLCodeUpdatePhoneCodeData ¶
type TLCodeUpdatePhoneCodeData struct { Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=code.TLConstructor" json:"constructor,omitempty"` AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` PhoneCodeHash string `protobuf:"bytes,5,opt,name=phone_code_hash,json=phoneCodeHash,proto3" json:"phone_code_hash,omitempty"` CodeData *PhoneCodeTransaction `protobuf:"bytes,6,opt,name=code_data,json=codeData,proto3" json:"code_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
--------------------------------------------------------------------------------------------
func (*TLCodeUpdatePhoneCodeData) CalcByteSize ¶
func (m *TLCodeUpdatePhoneCodeData) CalcByteSize(layer int32) int
func (*TLCodeUpdatePhoneCodeData) DebugString ¶
func (m *TLCodeUpdatePhoneCodeData) DebugString() string
func (*TLCodeUpdatePhoneCodeData) Decode ¶
func (m *TLCodeUpdatePhoneCodeData) Decode(dBuf *mtproto.DecodeBuf) error
func (*TLCodeUpdatePhoneCodeData) Descriptor ¶
func (*TLCodeUpdatePhoneCodeData) Descriptor() ([]byte, []int)
func (*TLCodeUpdatePhoneCodeData) Encode ¶
func (m *TLCodeUpdatePhoneCodeData) Encode(x *mtproto.EncodeBuf, layer int32) error
func (*TLCodeUpdatePhoneCodeData) GetAuthKeyId ¶
func (m *TLCodeUpdatePhoneCodeData) GetAuthKeyId() int64
func (*TLCodeUpdatePhoneCodeData) GetCodeData ¶
func (m *TLCodeUpdatePhoneCodeData) GetCodeData() *PhoneCodeTransaction
func (*TLCodeUpdatePhoneCodeData) GetConstructor ¶
func (m *TLCodeUpdatePhoneCodeData) GetConstructor() TLConstructor
func (*TLCodeUpdatePhoneCodeData) GetPhone ¶
func (m *TLCodeUpdatePhoneCodeData) GetPhone() string
func (*TLCodeUpdatePhoneCodeData) GetPhoneCodeHash ¶
func (m *TLCodeUpdatePhoneCodeData) GetPhoneCodeHash() string
func (*TLCodeUpdatePhoneCodeData) GoString ¶
func (this *TLCodeUpdatePhoneCodeData) GoString() string
func (*TLCodeUpdatePhoneCodeData) Marshal ¶
func (m *TLCodeUpdatePhoneCodeData) Marshal() (dAtA []byte, err error)
func (*TLCodeUpdatePhoneCodeData) MarshalTo ¶
func (m *TLCodeUpdatePhoneCodeData) MarshalTo(dAtA []byte) (int, error)
func (*TLCodeUpdatePhoneCodeData) MarshalToSizedBuffer ¶
func (m *TLCodeUpdatePhoneCodeData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TLCodeUpdatePhoneCodeData) ProtoMessage ¶
func (*TLCodeUpdatePhoneCodeData) ProtoMessage()
func (*TLCodeUpdatePhoneCodeData) Reset ¶
func (m *TLCodeUpdatePhoneCodeData) Reset()
func (*TLCodeUpdatePhoneCodeData) Size ¶
func (m *TLCodeUpdatePhoneCodeData) Size() (n int)
func (*TLCodeUpdatePhoneCodeData) String ¶
func (m *TLCodeUpdatePhoneCodeData) String() string
func (*TLCodeUpdatePhoneCodeData) Unmarshal ¶
func (m *TLCodeUpdatePhoneCodeData) Unmarshal(dAtA []byte) error
func (*TLCodeUpdatePhoneCodeData) XXX_DiscardUnknown ¶
func (m *TLCodeUpdatePhoneCodeData) XXX_DiscardUnknown()
func (*TLCodeUpdatePhoneCodeData) XXX_Marshal ¶
func (m *TLCodeUpdatePhoneCodeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLCodeUpdatePhoneCodeData) XXX_Merge ¶
func (m *TLCodeUpdatePhoneCodeData) XXX_Merge(src proto.Message)
func (*TLCodeUpdatePhoneCodeData) XXX_Size ¶
func (m *TLCodeUpdatePhoneCodeData) XXX_Size() int
func (*TLCodeUpdatePhoneCodeData) XXX_Unmarshal ¶
func (m *TLCodeUpdatePhoneCodeData) XXX_Unmarshal(b []byte) error
type TLConstructor ¶
type TLConstructor int32
const ( CRC32_UNKNOWN TLConstructor = 0 CRC32_phoneCodeTransaction TLConstructor = -2089576808 CRC32_code_createPhoneCode TLConstructor = 1612963998 CRC32_code_getPhoneCode TLConstructor = 1638179065 CRC32_code_deletePhoneCode TLConstructor = -1498387888 CRC32_code_updatePhoneCodeData TLConstructor = -1231746411 )
func (TLConstructor) EnumDescriptor ¶
func (TLConstructor) EnumDescriptor() ([]byte, []int)
func (TLConstructor) String ¶
func (x TLConstructor) String() string
type TLPhoneCodeTransaction ¶
type TLPhoneCodeTransaction struct { Data2 *PhoneCodeTransaction `protobuf:"bytes,1,opt,name=data2,proto3" json:"data2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func MakeTLPhoneCodeTransaction ¶
func MakeTLPhoneCodeTransaction(data2 *PhoneCodeTransaction) *TLPhoneCodeTransaction
MakeTLPhoneCodeTransaction
func (*TLPhoneCodeTransaction) CalcByteSize ¶
func (m *TLPhoneCodeTransaction) CalcByteSize(layer int32) int
func (*TLPhoneCodeTransaction) DebugString ¶
func (m *TLPhoneCodeTransaction) DebugString() string
func (*TLPhoneCodeTransaction) Decode ¶
func (m *TLPhoneCodeTransaction) Decode(dBuf *mtproto.DecodeBuf) error
func (*TLPhoneCodeTransaction) Descriptor ¶
func (*TLPhoneCodeTransaction) Descriptor() ([]byte, []int)
func (*TLPhoneCodeTransaction) Encode ¶
func (m *TLPhoneCodeTransaction) Encode(x *mtproto.EncodeBuf, layer int32) error
func (*TLPhoneCodeTransaction) GetAuthKeyId ¶
func (m *TLPhoneCodeTransaction) GetAuthKeyId() int64
func (*TLPhoneCodeTransaction) GetData2 ¶
func (m *TLPhoneCodeTransaction) GetData2() *PhoneCodeTransaction
func (*TLPhoneCodeTransaction) GetFlashCallPattern ¶
func (m *TLPhoneCodeTransaction) GetFlashCallPattern() string
func (*TLPhoneCodeTransaction) GetNextCodeType ¶
func (m *TLPhoneCodeTransaction) GetNextCodeType() int32
func (*TLPhoneCodeTransaction) GetPhone ¶
func (m *TLPhoneCodeTransaction) GetPhone() string
func (*TLPhoneCodeTransaction) GetPhoneCode ¶
func (m *TLPhoneCodeTransaction) GetPhoneCode() string
func (*TLPhoneCodeTransaction) GetPhoneCodeExpired ¶
func (m *TLPhoneCodeTransaction) GetPhoneCodeExpired() int32
func (*TLPhoneCodeTransaction) GetPhoneCodeExtraData ¶
func (m *TLPhoneCodeTransaction) GetPhoneCodeExtraData() string
func (*TLPhoneCodeTransaction) GetPhoneCodeHash ¶
func (m *TLPhoneCodeTransaction) GetPhoneCodeHash() string
func (*TLPhoneCodeTransaction) GetPhoneNumberRegistered ¶
func (m *TLPhoneCodeTransaction) GetPhoneNumberRegistered() bool
func (*TLPhoneCodeTransaction) GetPredicateName ¶
func (m *TLPhoneCodeTransaction) GetPredicateName() string
func (*TLPhoneCodeTransaction) GetSentCodeType ¶
func (m *TLPhoneCodeTransaction) GetSentCodeType() int32
func (*TLPhoneCodeTransaction) GetSessionId ¶
func (m *TLPhoneCodeTransaction) GetSessionId() int64
func (*TLPhoneCodeTransaction) GetState ¶
func (m *TLPhoneCodeTransaction) GetState() int32
func (*TLPhoneCodeTransaction) GoString ¶
func (this *TLPhoneCodeTransaction) GoString() string
func (*TLPhoneCodeTransaction) Marshal ¶
func (m *TLPhoneCodeTransaction) Marshal() (dAtA []byte, err error)
func (*TLPhoneCodeTransaction) MarshalTo ¶
func (m *TLPhoneCodeTransaction) MarshalTo(dAtA []byte) (int, error)
func (*TLPhoneCodeTransaction) MarshalToSizedBuffer ¶
func (m *TLPhoneCodeTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TLPhoneCodeTransaction) ProtoMessage ¶
func (*TLPhoneCodeTransaction) ProtoMessage()
func (*TLPhoneCodeTransaction) Reset ¶
func (m *TLPhoneCodeTransaction) Reset()
func (*TLPhoneCodeTransaction) SetAuthKeyId ¶
func (m *TLPhoneCodeTransaction) SetAuthKeyId(v int64)
// flags
func (*TLPhoneCodeTransaction) SetFlashCallPattern ¶
func (m *TLPhoneCodeTransaction) SetFlashCallPattern(v string)
func (*TLPhoneCodeTransaction) SetNextCodeType ¶
func (m *TLPhoneCodeTransaction) SetNextCodeType(v int32)
func (*TLPhoneCodeTransaction) SetPhone ¶
func (m *TLPhoneCodeTransaction) SetPhone(v string)
func (*TLPhoneCodeTransaction) SetPhoneCode ¶
func (m *TLPhoneCodeTransaction) SetPhoneCode(v string)
func (*TLPhoneCodeTransaction) SetPhoneCodeExpired ¶
func (m *TLPhoneCodeTransaction) SetPhoneCodeExpired(v int32)
func (*TLPhoneCodeTransaction) SetPhoneCodeExtraData ¶
func (m *TLPhoneCodeTransaction) SetPhoneCodeExtraData(v string)
func (*TLPhoneCodeTransaction) SetPhoneCodeHash ¶
func (m *TLPhoneCodeTransaction) SetPhoneCodeHash(v string)
func (*TLPhoneCodeTransaction) SetPhoneNumberRegistered ¶
func (m *TLPhoneCodeTransaction) SetPhoneNumberRegistered(v bool)
func (*TLPhoneCodeTransaction) SetSentCodeType ¶
func (m *TLPhoneCodeTransaction) SetSentCodeType(v int32)
func (*TLPhoneCodeTransaction) SetSessionId ¶
func (m *TLPhoneCodeTransaction) SetSessionId(v int64)
func (*TLPhoneCodeTransaction) SetState ¶
func (m *TLPhoneCodeTransaction) SetState(v int32)
func (*TLPhoneCodeTransaction) Size ¶
func (m *TLPhoneCodeTransaction) Size() (n int)
func (*TLPhoneCodeTransaction) String ¶
func (m *TLPhoneCodeTransaction) String() string
func (*TLPhoneCodeTransaction) To_PhoneCodeTransaction ¶
func (m *TLPhoneCodeTransaction) To_PhoneCodeTransaction() *PhoneCodeTransaction
func (*TLPhoneCodeTransaction) Unmarshal ¶
func (m *TLPhoneCodeTransaction) Unmarshal(dAtA []byte) error
func (*TLPhoneCodeTransaction) XXX_DiscardUnknown ¶
func (m *TLPhoneCodeTransaction) XXX_DiscardUnknown()
func (*TLPhoneCodeTransaction) XXX_Marshal ¶
func (m *TLPhoneCodeTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLPhoneCodeTransaction) XXX_Merge ¶
func (m *TLPhoneCodeTransaction) XXX_Merge(src proto.Message)
func (*TLPhoneCodeTransaction) XXX_Size ¶
func (m *TLPhoneCodeTransaction) XXX_Size() int
func (*TLPhoneCodeTransaction) XXX_Unmarshal ¶
func (m *TLPhoneCodeTransaction) XXX_Unmarshal(b []byte) error
type UnimplementedRPCCodeServer ¶
type UnimplementedRPCCodeServer struct { }
UnimplementedRPCCodeServer can be embedded to have forward compatible implementations.
func (*UnimplementedRPCCodeServer) CodeCreatePhoneCode ¶
func (*UnimplementedRPCCodeServer) CodeCreatePhoneCode(ctx context.Context, req *TLCodeCreatePhoneCode) (*PhoneCodeTransaction, error)
func (*UnimplementedRPCCodeServer) CodeDeletePhoneCode ¶
func (*UnimplementedRPCCodeServer) CodeDeletePhoneCode(ctx context.Context, req *TLCodeDeletePhoneCode) (*mtproto.Bool, error)
func (*UnimplementedRPCCodeServer) CodeGetPhoneCode ¶
func (*UnimplementedRPCCodeServer) CodeGetPhoneCode(ctx context.Context, req *TLCodeGetPhoneCode) (*PhoneCodeTransaction, error)
func (*UnimplementedRPCCodeServer) CodeUpdatePhoneCodeData ¶
func (*UnimplementedRPCCodeServer) CodeUpdatePhoneCodeData(ctx context.Context, req *TLCodeUpdatePhoneCodeData) (*mtproto.Bool, error)