Documentation ¶
Index ¶
- func MarshalBinary(e *tg.Session) ([]byte, error)
- func TgSessionProto2TgSession(tgSessionProto *TgSession) (tgSession *tg.Session)
- func UnmarshalBinary(data []byte) (*tg.Session, error)
- type TgSession
- func (*TgSession) Descriptor() ([]byte, []int)
- func (m *TgSession) GetID() string
- func (m *TgSession) GetIsAuthorized() bool
- func (m *TgSession) GetPhone() string
- func (m *TgSession) GetPhoneCodeHash() string
- func (m *TgSession) GetSession() []byte
- func (e *TgSession) MarshalBinary() (data []byte, err error)
- func (*TgSession) ProtoMessage()
- func (m *TgSession) Reset()
- func (m *TgSession) String() string
- func (e *TgSession) UnmarshalBinary(data []byte) (err error)
- func (m *TgSession) XXX_DiscardUnknown()
- func (m *TgSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TgSession) XXX_Merge(src proto.Message)
- func (m *TgSession) XXX_Size() int
- func (m *TgSession) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TgSession ¶
type TgSession struct { IsAuthorized bool `protobuf:"varint,1,opt,name=IsAuthorized,proto3" json:"IsAuthorized,omitempty"` Session []byte `protobuf:"bytes,2,opt,name=Session,proto3" json:"Session,omitempty"` ID string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"` Phone string `protobuf:"bytes,4,opt,name=Phone,proto3" json:"Phone,omitempty"` PhoneCodeHash string `protobuf:"bytes,5,opt,name=PhoneCodeHash,proto3" json:"PhoneCodeHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TgSession) Descriptor ¶
func (*TgSession) GetIsAuthorized ¶
func (*TgSession) GetPhoneCodeHash ¶
func (*TgSession) GetSession ¶
func (*TgSession) MarshalBinary ¶
func (*TgSession) ProtoMessage ¶
func (*TgSession) ProtoMessage()
func (*TgSession) UnmarshalBinary ¶
func (*TgSession) XXX_DiscardUnknown ¶
func (m *TgSession) XXX_DiscardUnknown()
func (*TgSession) XXX_Marshal ¶
func (*TgSession) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.