session

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Predicate_sessionClientEvent             = "sessionClientEvent"
	Predicate_sessionClientData              = "sessionClientData"
	Predicate_httpSessionData                = "httpSessionData"
	Predicate_session_queryAuthKey           = "session_queryAuthKey"
	Predicate_session_setAuthKey             = "session_setAuthKey"
	Predicate_session_createSession          = "session_createSession"
	Predicate_session_sendDataToSession      = "session_sendDataToSession"
	Predicate_session_sendHttpDataToSession  = "session_sendHttpDataToSession"
	Predicate_session_closeSession           = "session_closeSession"
	Predicate_session_pushUpdatesData        = "session_pushUpdatesData"
	Predicate_session_pushSessionUpdatesData = "session_pushSessionUpdatesData"
	Predicate_session_pushRpcResultData      = "session_pushRpcResultData"
)

Variables

View Source
var (
	ErrInvalidLengthSessionTl        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSessionTl          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSessionTl = fmt.Errorf("proto: unexpected end of group")
)
View Source
var TLConstructor_name = map[int32]string{
	0:           "CRC32_UNKNOWN",
	-739769057:  "CRC32_sessionClientEvent",
	825806990:   "CRC32_sessionClientData",
	-606579889:  "CRC32_httpSessionData",
	1798174801:  "CRC32_session_queryAuthKey",
	487672075:   "CRC32_session_setAuthKey",
	1091351053:  "CRC32_session_createSession",
	-2023019028: "CRC32_session_sendDataToSession",
	-1142152274: "CRC32_session_sendHttpDataToSession",
	393200211:   "CRC32_session_closeSession",
	1075152191:  "CRC32_session_pushUpdatesData",
	106898165:   "CRC32_session_pushSessionUpdatesData",
	556344000:   "CRC32_session_pushRpcResultData",
}
View Source
var TLConstructor_value = map[string]int32{
	"CRC32_UNKNOWN":                        0,
	"CRC32_sessionClientEvent":             -739769057,
	"CRC32_sessionClientData":              825806990,
	"CRC32_httpSessionData":                -606579889,
	"CRC32_session_queryAuthKey":           1798174801,
	"CRC32_session_setAuthKey":             487672075,
	"CRC32_session_createSession":          1091351053,
	"CRC32_session_sendDataToSession":      -2023019028,
	"CRC32_session_sendHttpDataToSession":  -1142152274,
	"CRC32_session_closeSession":           393200211,
	"CRC32_session_pushUpdatesData":        1075152191,
	"CRC32_session_pushSessionUpdatesData": 106898165,
	"CRC32_session_pushRpcResultData":      556344000,
}

Functions

func CheckClassID

func CheckClassID(classId int32) (ok bool)

func GetClazzID

func GetClazzID(clazzName string, layer int) int32

func GetRPCContextRegisters

func GetRPCContextRegisters() map[string]RPCContextTuple

func NewTLObjectByClassID

func NewTLObjectByClassID(classId int32) mtproto.TLObject

func RegisterRPCSessionServer

func RegisterRPCSessionServer(s *grpc.Server, srv RPCSessionServer)

Types

type HttpSessionData

type HttpSessionData 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=session.TLConstructor" json:"constructor,omitempty"`
	Payload              []byte        `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

-------------------------------------------------------------------------------------------- httpSessionData payload:bytes = HttpSessionData;

HttpSessionData <--

  • TL_httpSessionData

func (*HttpSessionData) CalcByteSize

func (m *HttpSessionData) CalcByteSize(layer int32) int

func (*HttpSessionData) DebugString

func (m *HttpSessionData) DebugString() string

func (*HttpSessionData) Decode

func (m *HttpSessionData) Decode(dBuf *mtproto.DecodeBuf) error

func (*HttpSessionData) Descriptor

func (*HttpSessionData) Descriptor() ([]byte, []int)

func (*HttpSessionData) Encode

func (m *HttpSessionData) Encode(x *mtproto.EncodeBuf, layer int32) []byte

func (*HttpSessionData) GetConstructor

func (m *HttpSessionData) GetConstructor() TLConstructor

func (*HttpSessionData) GetPayload

func (m *HttpSessionData) GetPayload() []byte

func (*HttpSessionData) GetPredicateName

func (m *HttpSessionData) GetPredicateName() string

func (*HttpSessionData) GoString

func (this *HttpSessionData) GoString() string

func (*HttpSessionData) Marshal

func (m *HttpSessionData) Marshal() (dAtA []byte, err error)

func (*HttpSessionData) MarshalTo

func (m *HttpSessionData) MarshalTo(dAtA []byte) (int, error)

func (*HttpSessionData) MarshalToSizedBuffer

func (m *HttpSessionData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HttpSessionData) ProtoMessage

func (*HttpSessionData) ProtoMessage()

func (*HttpSessionData) Reset

func (m *HttpSessionData) Reset()

func (*HttpSessionData) Size

func (m *HttpSessionData) Size() (n int)

func (*HttpSessionData) String

func (m *HttpSessionData) String() string

func (*HttpSessionData) To_HttpSessionData

func (m *HttpSessionData) To_HttpSessionData() *TLHttpSessionData

To_HttpSessionData

func (*HttpSessionData) Unmarshal

func (m *HttpSessionData) Unmarshal(dAtA []byte) error

func (*HttpSessionData) XXX_DiscardUnknown

func (m *HttpSessionData) XXX_DiscardUnknown()

func (*HttpSessionData) XXX_Marshal

func (m *HttpSessionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HttpSessionData) XXX_Merge

func (m *HttpSessionData) XXX_Merge(src proto.Message)

func (*HttpSessionData) XXX_Size

func (m *HttpSessionData) XXX_Size() int

func (*HttpSessionData) XXX_Unmarshal

func (m *HttpSessionData) XXX_Unmarshal(b []byte) error

type RPCContextTuple

type RPCContextTuple struct {
	Method       string
	NewReplyFunc newRPCReplyFunc
}

func FindRPCContextTuple

func FindRPCContextTuple(t interface{}) *RPCContextTuple

type RPCSessionClient

type RPCSessionClient interface {
	// session.queryAuthKey auth_key_id:long = AuthKeyInfo;
	SessionQueryAuthKey(ctx context.Context, in *TLSessionQueryAuthKey, opts ...grpc.CallOption) (*mtproto.AuthKeyInfo, error)
	// session.setAuthKey auth_key:AuthKeyInfo future_salt:FutureSalt expires_in:int = Bool;
	SessionSetAuthKey(ctx context.Context, in *TLSessionSetAuthKey, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.createSession client:SessionClientEvent = Bool;
	SessionCreateSession(ctx context.Context, in *TLSessionCreateSession, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.sendDataToSession data:SessionClientData = Bool;
	SessionSendDataToSession(ctx context.Context, in *TLSessionSendDataToSession, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.sendHttpDataToSession client:SessionClientData = HttpSessionData;
	SessionSendHttpDataToSession(ctx context.Context, in *TLSessionSendHttpDataToSession, opts ...grpc.CallOption) (*HttpSessionData, error)
	// session.closeSession client:SessionClientEvent = Bool;
	SessionCloseSession(ctx context.Context, in *TLSessionCloseSession, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.pushUpdatesData flags:# auth_key_id:long notification:flags.0?true updates:Updates = Bool;
	SessionPushUpdatesData(ctx context.Context, in *TLSessionPushUpdatesData, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.pushSessionUpdatesData auth_key_id:long session_id:long updates:Updates = Bool;
	SessionPushSessionUpdatesData(ctx context.Context, in *TLSessionPushSessionUpdatesData, opts ...grpc.CallOption) (*mtproto.Bool, error)
	// session.pushRpcResultData auth_key_id:long session_id:long client_req_msg_id:long rpc_result_data:bytes = Bool;
	SessionPushRpcResultData(ctx context.Context, in *TLSessionPushRpcResultData, opts ...grpc.CallOption) (*mtproto.Bool, error)
}

RPCSessionClient is the client API for RPCSession service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRPCSessionClient

func NewRPCSessionClient(cc *grpc.ClientConn) RPCSessionClient

type RPCSessionServer

type RPCSessionServer interface {
	// session.queryAuthKey auth_key_id:long = AuthKeyInfo;
	SessionQueryAuthKey(context.Context, *TLSessionQueryAuthKey) (*mtproto.AuthKeyInfo, error)
	// session.setAuthKey auth_key:AuthKeyInfo future_salt:FutureSalt expires_in:int = Bool;
	SessionSetAuthKey(context.Context, *TLSessionSetAuthKey) (*mtproto.Bool, error)
	// session.createSession client:SessionClientEvent = Bool;
	SessionCreateSession(context.Context, *TLSessionCreateSession) (*mtproto.Bool, error)
	// session.sendDataToSession data:SessionClientData = Bool;
	SessionSendDataToSession(context.Context, *TLSessionSendDataToSession) (*mtproto.Bool, error)
	// session.sendHttpDataToSession client:SessionClientData = HttpSessionData;
	SessionSendHttpDataToSession(context.Context, *TLSessionSendHttpDataToSession) (*HttpSessionData, error)
	// session.closeSession client:SessionClientEvent = Bool;
	SessionCloseSession(context.Context, *TLSessionCloseSession) (*mtproto.Bool, error)
	// session.pushUpdatesData flags:# auth_key_id:long notification:flags.0?true updates:Updates = Bool;
	SessionPushUpdatesData(context.Context, *TLSessionPushUpdatesData) (*mtproto.Bool, error)
	// session.pushSessionUpdatesData auth_key_id:long session_id:long updates:Updates = Bool;
	SessionPushSessionUpdatesData(context.Context, *TLSessionPushSessionUpdatesData) (*mtproto.Bool, error)
	// session.pushRpcResultData auth_key_id:long session_id:long client_req_msg_id:long rpc_result_data:bytes = Bool;
	SessionPushRpcResultData(context.Context, *TLSessionPushRpcResultData) (*mtproto.Bool, error)
}

RPCSessionServer is the server API for RPCSession service.

type SessionClientData

type SessionClientData 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=session.TLConstructor" json:"constructor,omitempty"`
	ServerId             string        `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	ConnType             int32         `protobuf:"varint,4,opt,name=conn_type,json=connType,proto3" json:"conn_type,omitempty"`
	AuthKeyId            int64         `protobuf:"varint,5,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
	SessionId            int64         `protobuf:"varint,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	ClientIp             string        `protobuf:"bytes,7,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
	QuickAck             int32         `protobuf:"varint,8,opt,name=quick_ack,json=quickAck,proto3" json:"quick_ack,omitempty"`
	Salt                 int64         `protobuf:"varint,9,opt,name=salt,proto3" json:"salt,omitempty"`
	Payload              []byte        `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

-------------------------------------------------------------------------------------------- sessionClientData server_id:string conn_type:int auth_key_id:long session_id:long client_ip:string quick_ack:int salt:long payload:bytes = SessionClientData;

SessionClientData <--

  • TL_sessionClientData

func (*SessionClientData) CalcByteSize

func (m *SessionClientData) CalcByteSize(layer int32) int

func (*SessionClientData) DebugString

func (m *SessionClientData) DebugString() string

func (*SessionClientData) Decode

func (m *SessionClientData) Decode(dBuf *mtproto.DecodeBuf) error

func (*SessionClientData) Descriptor

func (*SessionClientData) Descriptor() ([]byte, []int)

func (*SessionClientData) Encode

func (m *SessionClientData) Encode(x *mtproto.EncodeBuf, layer int32) []byte

func (*SessionClientData) GetAuthKeyId

func (m *SessionClientData) GetAuthKeyId() int64

func (*SessionClientData) GetClientIp

func (m *SessionClientData) GetClientIp() string

func (*SessionClientData) GetConnType

func (m *SessionClientData) GetConnType() int32

func (*SessionClientData) GetConstructor

func (m *SessionClientData) GetConstructor() TLConstructor

func (*SessionClientData) GetPayload

func (m *SessionClientData) GetPayload() []byte

func (*SessionClientData) GetPredicateName

func (m *SessionClientData) GetPredicateName() string

func (*SessionClientData) GetQuickAck

func (m *SessionClientData) GetQuickAck() int32

func (*SessionClientData) GetSalt

func (m *SessionClientData) GetSalt() int64

func (*SessionClientData) GetServerId

func (m *SessionClientData) GetServerId() string

func (*SessionClientData) GetSessionId

func (m *SessionClientData) GetSessionId() int64

func (*SessionClientData) GoString

func (this *SessionClientData) GoString() string

func (*SessionClientData) Marshal

func (m *SessionClientData) Marshal() (dAtA []byte, err error)

func (*SessionClientData) MarshalTo

func (m *SessionClientData) MarshalTo(dAtA []byte) (int, error)

func (*SessionClientData) MarshalToSizedBuffer

func (m *SessionClientData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionClientData) ProtoMessage

func (*SessionClientData) ProtoMessage()

func (*SessionClientData) Reset

func (m *SessionClientData) Reset()

func (*SessionClientData) Size

func (m *SessionClientData) Size() (n int)

func (*SessionClientData) String

func (m *SessionClientData) String() string

func (*SessionClientData) To_SessionClientData

func (m *SessionClientData) To_SessionClientData() *TLSessionClientData

To_SessionClientData

func (*SessionClientData) Unmarshal

func (m *SessionClientData) Unmarshal(dAtA []byte) error

func (*SessionClientData) XXX_DiscardUnknown

func (m *SessionClientData) XXX_DiscardUnknown()

func (*SessionClientData) XXX_Marshal

func (m *SessionClientData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionClientData) XXX_Merge

func (m *SessionClientData) XXX_Merge(src proto.Message)

func (*SessionClientData) XXX_Size

func (m *SessionClientData) XXX_Size() int

func (*SessionClientData) XXX_Unmarshal

func (m *SessionClientData) XXX_Unmarshal(b []byte) error

type SessionClientEvent

type SessionClientEvent 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=session.TLConstructor" json:"constructor,omitempty"`
	ServerId             string        `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	ConnType             int32         `protobuf:"varint,4,opt,name=conn_type,json=connType,proto3" json:"conn_type,omitempty"`
	AuthKeyId            int64         `protobuf:"varint,5,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
	SessionId            int64         `protobuf:"varint,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	ClientIp             string        `protobuf:"bytes,7,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

-------------------------------------------------------------------------------------------- sessionClientEvent server_id:string conn_type:int auth_key_id:long session_id:long client_ip:string = SessionClientEvent;

SessionClientEvent <--

  • TL_sessionClientEvent

func (*SessionClientEvent) CalcByteSize

func (m *SessionClientEvent) CalcByteSize(layer int32) int

func (*SessionClientEvent) DebugString

func (m *SessionClientEvent) DebugString() string

func (*SessionClientEvent) Decode

func (m *SessionClientEvent) Decode(dBuf *mtproto.DecodeBuf) error

func (*SessionClientEvent) Descriptor

func (*SessionClientEvent) Descriptor() ([]byte, []int)

func (*SessionClientEvent) Encode

func (m *SessionClientEvent) Encode(x *mtproto.EncodeBuf, layer int32) []byte

func (*SessionClientEvent) GetAuthKeyId

func (m *SessionClientEvent) GetAuthKeyId() int64

func (*SessionClientEvent) GetClientIp

func (m *SessionClientEvent) GetClientIp() string

func (*SessionClientEvent) GetConnType

func (m *SessionClientEvent) GetConnType() int32

func (*SessionClientEvent) GetConstructor

func (m *SessionClientEvent) GetConstructor() TLConstructor

func (*SessionClientEvent) GetPredicateName

func (m *SessionClientEvent) GetPredicateName() string

func (*SessionClientEvent) GetServerId

func (m *SessionClientEvent) GetServerId() string

func (*SessionClientEvent) GetSessionId

func (m *SessionClientEvent) GetSessionId() int64

func (*SessionClientEvent) GoString

func (this *SessionClientEvent) GoString() string

func (*SessionClientEvent) Marshal

func (m *SessionClientEvent) Marshal() (dAtA []byte, err error)

func (*SessionClientEvent) MarshalTo

func (m *SessionClientEvent) MarshalTo(dAtA []byte) (int, error)

func (*SessionClientEvent) MarshalToSizedBuffer

func (m *SessionClientEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionClientEvent) ProtoMessage

func (*SessionClientEvent) ProtoMessage()

func (*SessionClientEvent) Reset

func (m *SessionClientEvent) Reset()

func (*SessionClientEvent) Size

func (m *SessionClientEvent) Size() (n int)

func (*SessionClientEvent) String

func (m *SessionClientEvent) String() string

func (*SessionClientEvent) To_SessionClientEvent

func (m *SessionClientEvent) To_SessionClientEvent() *TLSessionClientEvent

To_SessionClientEvent

func (*SessionClientEvent) Unmarshal

func (m *SessionClientEvent) Unmarshal(dAtA []byte) error

func (*SessionClientEvent) XXX_DiscardUnknown

func (m *SessionClientEvent) XXX_DiscardUnknown()

func (*SessionClientEvent) XXX_Marshal

func (m *SessionClientEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionClientEvent) XXX_Merge

func (m *SessionClientEvent) XXX_Merge(src proto.Message)

func (*SessionClientEvent) XXX_Size

func (m *SessionClientEvent) XXX_Size() int

func (*SessionClientEvent) XXX_Unmarshal

func (m *SessionClientEvent) XXX_Unmarshal(b []byte) error

type TLConstructor

type TLConstructor int32
const (
	CRC32_UNKNOWN                        TLConstructor = 0
	CRC32_sessionClientEvent             TLConstructor = -739769057
	CRC32_sessionClientData              TLConstructor = 825806990
	CRC32_httpSessionData                TLConstructor = -606579889
	CRC32_session_queryAuthKey           TLConstructor = 1798174801
	CRC32_session_setAuthKey             TLConstructor = 487672075
	CRC32_session_createSession          TLConstructor = 1091351053
	CRC32_session_sendDataToSession      TLConstructor = -2023019028
	CRC32_session_sendHttpDataToSession  TLConstructor = -1142152274
	CRC32_session_closeSession           TLConstructor = 393200211
	CRC32_session_pushUpdatesData        TLConstructor = 1075152191
	CRC32_session_pushSessionUpdatesData TLConstructor = 106898165
	CRC32_session_pushRpcResultData      TLConstructor = 556344000
)

func (TLConstructor) EnumDescriptor

func (TLConstructor) EnumDescriptor() ([]byte, []int)

func (TLConstructor) String

func (x TLConstructor) String() string

type TLHttpSessionData

type TLHttpSessionData struct {
	Data2                *HttpSessionData `protobuf:"bytes,1,opt,name=data2,proto3" json:"data2,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

httpSessionData payload:bytes = HttpSessionData;

func MakeTLHttpSessionData

func MakeTLHttpSessionData(data2 *HttpSessionData) *TLHttpSessionData

MakeTLHttpSessionData

func (*TLHttpSessionData) CalcByteSize

func (m *TLHttpSessionData) CalcByteSize(layer int32) int

func (*TLHttpSessionData) DebugString

func (m *TLHttpSessionData) DebugString() string

func (*TLHttpSessionData) Decode

func (m *TLHttpSessionData) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLHttpSessionData) Descriptor

func (*TLHttpSessionData) Descriptor() ([]byte, []int)

func (*TLHttpSessionData) Encode

func (m *TLHttpSessionData) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLHttpSessionData) GetData2

func (m *TLHttpSessionData) GetData2() *HttpSessionData

func (*TLHttpSessionData) GetPayload

func (m *TLHttpSessionData) GetPayload() []byte

func (*TLHttpSessionData) GetPredicateName

func (m *TLHttpSessionData) GetPredicateName() string

func (*TLHttpSessionData) GoString

func (this *TLHttpSessionData) GoString() string

func (*TLHttpSessionData) Marshal

func (m *TLHttpSessionData) Marshal() (dAtA []byte, err error)

func (*TLHttpSessionData) MarshalTo

func (m *TLHttpSessionData) MarshalTo(dAtA []byte) (int, error)

func (*TLHttpSessionData) MarshalToSizedBuffer

func (m *TLHttpSessionData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLHttpSessionData) ProtoMessage

func (*TLHttpSessionData) ProtoMessage()

func (*TLHttpSessionData) Reset

func (m *TLHttpSessionData) Reset()

func (*TLHttpSessionData) SetPayload

func (m *TLHttpSessionData) SetPayload(v []byte)

func (*TLHttpSessionData) Size

func (m *TLHttpSessionData) Size() (n int)

func (*TLHttpSessionData) String

func (m *TLHttpSessionData) String() string

func (*TLHttpSessionData) To_HttpSessionData

func (m *TLHttpSessionData) To_HttpSessionData() *HttpSessionData

func (*TLHttpSessionData) Unmarshal

func (m *TLHttpSessionData) Unmarshal(dAtA []byte) error

func (*TLHttpSessionData) XXX_DiscardUnknown

func (m *TLHttpSessionData) XXX_DiscardUnknown()

func (*TLHttpSessionData) XXX_Marshal

func (m *TLHttpSessionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLHttpSessionData) XXX_Merge

func (m *TLHttpSessionData) XXX_Merge(src proto.Message)

func (*TLHttpSessionData) XXX_Size

func (m *TLHttpSessionData) XXX_Size() int

func (*TLHttpSessionData) XXX_Unmarshal

func (m *TLHttpSessionData) XXX_Unmarshal(b []byte) error

type TLSessionClientData

type TLSessionClientData struct {
	Data2                *SessionClientData `protobuf:"bytes,1,opt,name=data2,proto3" json:"data2,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

sessionClientData server_id:string conn_type:int auth_key_id:long session_id:long client_ip:string quick_ack:int salt:long payload:bytes = SessionClientData;

func MakeTLSessionClientData

func MakeTLSessionClientData(data2 *SessionClientData) *TLSessionClientData

MakeTLSessionClientData

func (*TLSessionClientData) CalcByteSize

func (m *TLSessionClientData) CalcByteSize(layer int32) int

func (*TLSessionClientData) DebugString

func (m *TLSessionClientData) DebugString() string

func (*TLSessionClientData) Decode

func (m *TLSessionClientData) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionClientData) Descriptor

func (*TLSessionClientData) Descriptor() ([]byte, []int)

func (*TLSessionClientData) Encode

func (m *TLSessionClientData) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionClientData) GetAuthKeyId

func (m *TLSessionClientData) GetAuthKeyId() int64

func (*TLSessionClientData) GetClientIp

func (m *TLSessionClientData) GetClientIp() string

func (*TLSessionClientData) GetConnType

func (m *TLSessionClientData) GetConnType() int32

func (*TLSessionClientData) GetData2

func (m *TLSessionClientData) GetData2() *SessionClientData

func (*TLSessionClientData) GetPayload

func (m *TLSessionClientData) GetPayload() []byte

func (*TLSessionClientData) GetPredicateName

func (m *TLSessionClientData) GetPredicateName() string

func (*TLSessionClientData) GetQuickAck

func (m *TLSessionClientData) GetQuickAck() int32

func (*TLSessionClientData) GetSalt

func (m *TLSessionClientData) GetSalt() int64

func (*TLSessionClientData) GetServerId

func (m *TLSessionClientData) GetServerId() string

func (*TLSessionClientData) GetSessionId

func (m *TLSessionClientData) GetSessionId() int64

func (*TLSessionClientData) GoString

func (this *TLSessionClientData) GoString() string

func (*TLSessionClientData) Marshal

func (m *TLSessionClientData) Marshal() (dAtA []byte, err error)

func (*TLSessionClientData) MarshalTo

func (m *TLSessionClientData) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionClientData) MarshalToSizedBuffer

func (m *TLSessionClientData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionClientData) ProtoMessage

func (*TLSessionClientData) ProtoMessage()

func (*TLSessionClientData) Reset

func (m *TLSessionClientData) Reset()

func (*TLSessionClientData) SetAuthKeyId

func (m *TLSessionClientData) SetAuthKeyId(v int64)

func (*TLSessionClientData) SetClientIp

func (m *TLSessionClientData) SetClientIp(v string)

func (*TLSessionClientData) SetConnType

func (m *TLSessionClientData) SetConnType(v int32)

func (*TLSessionClientData) SetPayload

func (m *TLSessionClientData) SetPayload(v []byte)

func (*TLSessionClientData) SetQuickAck

func (m *TLSessionClientData) SetQuickAck(v int32)

func (*TLSessionClientData) SetSalt

func (m *TLSessionClientData) SetSalt(v int64)

func (*TLSessionClientData) SetServerId

func (m *TLSessionClientData) SetServerId(v string)

func (*TLSessionClientData) SetSessionId

func (m *TLSessionClientData) SetSessionId(v int64)

func (*TLSessionClientData) Size

func (m *TLSessionClientData) Size() (n int)

func (*TLSessionClientData) String

func (m *TLSessionClientData) String() string

func (*TLSessionClientData) To_SessionClientData

func (m *TLSessionClientData) To_SessionClientData() *SessionClientData

func (*TLSessionClientData) Unmarshal

func (m *TLSessionClientData) Unmarshal(dAtA []byte) error

func (*TLSessionClientData) XXX_DiscardUnknown

func (m *TLSessionClientData) XXX_DiscardUnknown()

func (*TLSessionClientData) XXX_Marshal

func (m *TLSessionClientData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionClientData) XXX_Merge

func (m *TLSessionClientData) XXX_Merge(src proto.Message)

func (*TLSessionClientData) XXX_Size

func (m *TLSessionClientData) XXX_Size() int

func (*TLSessionClientData) XXX_Unmarshal

func (m *TLSessionClientData) XXX_Unmarshal(b []byte) error

type TLSessionClientEvent

type TLSessionClientEvent struct {
	Data2                *SessionClientEvent `protobuf:"bytes,1,opt,name=data2,proto3" json:"data2,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

sessionClientEvent server_id:string conn_type:int auth_key_id:long session_id:long client_ip:string = SessionClientEvent;

func MakeTLSessionClientEvent

func MakeTLSessionClientEvent(data2 *SessionClientEvent) *TLSessionClientEvent

MakeTLSessionClientEvent

func (*TLSessionClientEvent) CalcByteSize

func (m *TLSessionClientEvent) CalcByteSize(layer int32) int

func (*TLSessionClientEvent) DebugString

func (m *TLSessionClientEvent) DebugString() string

func (*TLSessionClientEvent) Decode

func (m *TLSessionClientEvent) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionClientEvent) Descriptor

func (*TLSessionClientEvent) Descriptor() ([]byte, []int)

func (*TLSessionClientEvent) Encode

func (m *TLSessionClientEvent) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionClientEvent) GetAuthKeyId

func (m *TLSessionClientEvent) GetAuthKeyId() int64

func (*TLSessionClientEvent) GetClientIp

func (m *TLSessionClientEvent) GetClientIp() string

func (*TLSessionClientEvent) GetConnType

func (m *TLSessionClientEvent) GetConnType() int32

func (*TLSessionClientEvent) GetData2

func (*TLSessionClientEvent) GetPredicateName

func (m *TLSessionClientEvent) GetPredicateName() string

func (*TLSessionClientEvent) GetServerId

func (m *TLSessionClientEvent) GetServerId() string

func (*TLSessionClientEvent) GetSessionId

func (m *TLSessionClientEvent) GetSessionId() int64

func (*TLSessionClientEvent) GoString

func (this *TLSessionClientEvent) GoString() string

func (*TLSessionClientEvent) Marshal

func (m *TLSessionClientEvent) Marshal() (dAtA []byte, err error)

func (*TLSessionClientEvent) MarshalTo

func (m *TLSessionClientEvent) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionClientEvent) MarshalToSizedBuffer

func (m *TLSessionClientEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionClientEvent) ProtoMessage

func (*TLSessionClientEvent) ProtoMessage()

func (*TLSessionClientEvent) Reset

func (m *TLSessionClientEvent) Reset()

func (*TLSessionClientEvent) SetAuthKeyId

func (m *TLSessionClientEvent) SetAuthKeyId(v int64)

func (*TLSessionClientEvent) SetClientIp

func (m *TLSessionClientEvent) SetClientIp(v string)

func (*TLSessionClientEvent) SetConnType

func (m *TLSessionClientEvent) SetConnType(v int32)

func (*TLSessionClientEvent) SetServerId

func (m *TLSessionClientEvent) SetServerId(v string)

func (*TLSessionClientEvent) SetSessionId

func (m *TLSessionClientEvent) SetSessionId(v int64)

func (*TLSessionClientEvent) Size

func (m *TLSessionClientEvent) Size() (n int)

func (*TLSessionClientEvent) String

func (m *TLSessionClientEvent) String() string

func (*TLSessionClientEvent) To_SessionClientEvent

func (m *TLSessionClientEvent) To_SessionClientEvent() *SessionClientEvent

func (*TLSessionClientEvent) Unmarshal

func (m *TLSessionClientEvent) Unmarshal(dAtA []byte) error

func (*TLSessionClientEvent) XXX_DiscardUnknown

func (m *TLSessionClientEvent) XXX_DiscardUnknown()

func (*TLSessionClientEvent) XXX_Marshal

func (m *TLSessionClientEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionClientEvent) XXX_Merge

func (m *TLSessionClientEvent) XXX_Merge(src proto.Message)

func (*TLSessionClientEvent) XXX_Size

func (m *TLSessionClientEvent) XXX_Size() int

func (*TLSessionClientEvent) XXX_Unmarshal

func (m *TLSessionClientEvent) XXX_Unmarshal(b []byte) error

type TLSessionCloseSession

type TLSessionCloseSession struct {
	Constructor          TLConstructor       `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	Client               *SessionClientEvent `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

-------------------------------------------------------------------------------------------- session.closeSession client:SessionClientEvent = Bool;

func (*TLSessionCloseSession) CalcByteSize

func (m *TLSessionCloseSession) CalcByteSize(layer int32) int

func (*TLSessionCloseSession) DebugString

func (m *TLSessionCloseSession) DebugString() string

func (*TLSessionCloseSession) Decode

func (m *TLSessionCloseSession) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionCloseSession) Descriptor

func (*TLSessionCloseSession) Descriptor() ([]byte, []int)

func (*TLSessionCloseSession) Encode

func (m *TLSessionCloseSession) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionCloseSession) GetClient

func (m *TLSessionCloseSession) GetClient() *SessionClientEvent

func (*TLSessionCloseSession) GetConstructor

func (m *TLSessionCloseSession) GetConstructor() TLConstructor

func (*TLSessionCloseSession) GoString

func (this *TLSessionCloseSession) GoString() string

func (*TLSessionCloseSession) Marshal

func (m *TLSessionCloseSession) Marshal() (dAtA []byte, err error)

func (*TLSessionCloseSession) MarshalTo

func (m *TLSessionCloseSession) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionCloseSession) MarshalToSizedBuffer

func (m *TLSessionCloseSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionCloseSession) ProtoMessage

func (*TLSessionCloseSession) ProtoMessage()

func (*TLSessionCloseSession) Reset

func (m *TLSessionCloseSession) Reset()

func (*TLSessionCloseSession) Size

func (m *TLSessionCloseSession) Size() (n int)

func (*TLSessionCloseSession) String

func (m *TLSessionCloseSession) String() string

func (*TLSessionCloseSession) Unmarshal

func (m *TLSessionCloseSession) Unmarshal(dAtA []byte) error

func (*TLSessionCloseSession) XXX_DiscardUnknown

func (m *TLSessionCloseSession) XXX_DiscardUnknown()

func (*TLSessionCloseSession) XXX_Marshal

func (m *TLSessionCloseSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionCloseSession) XXX_Merge

func (m *TLSessionCloseSession) XXX_Merge(src proto.Message)

func (*TLSessionCloseSession) XXX_Size

func (m *TLSessionCloseSession) XXX_Size() int

func (*TLSessionCloseSession) XXX_Unmarshal

func (m *TLSessionCloseSession) XXX_Unmarshal(b []byte) error

type TLSessionCreateSession

type TLSessionCreateSession struct {
	Constructor          TLConstructor       `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	Client               *SessionClientEvent `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

-------------------------------------------------------------------------------------------- session.createSession client:SessionClientEvent = Bool;

func (*TLSessionCreateSession) CalcByteSize

func (m *TLSessionCreateSession) CalcByteSize(layer int32) int

func (*TLSessionCreateSession) DebugString

func (m *TLSessionCreateSession) DebugString() string

func (*TLSessionCreateSession) Decode

func (m *TLSessionCreateSession) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionCreateSession) Descriptor

func (*TLSessionCreateSession) Descriptor() ([]byte, []int)

func (*TLSessionCreateSession) Encode

func (m *TLSessionCreateSession) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionCreateSession) GetClient

func (*TLSessionCreateSession) GetConstructor

func (m *TLSessionCreateSession) GetConstructor() TLConstructor

func (*TLSessionCreateSession) GoString

func (this *TLSessionCreateSession) GoString() string

func (*TLSessionCreateSession) Marshal

func (m *TLSessionCreateSession) Marshal() (dAtA []byte, err error)

func (*TLSessionCreateSession) MarshalTo

func (m *TLSessionCreateSession) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionCreateSession) MarshalToSizedBuffer

func (m *TLSessionCreateSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionCreateSession) ProtoMessage

func (*TLSessionCreateSession) ProtoMessage()

func (*TLSessionCreateSession) Reset

func (m *TLSessionCreateSession) Reset()

func (*TLSessionCreateSession) Size

func (m *TLSessionCreateSession) Size() (n int)

func (*TLSessionCreateSession) String

func (m *TLSessionCreateSession) String() string

func (*TLSessionCreateSession) Unmarshal

func (m *TLSessionCreateSession) Unmarshal(dAtA []byte) error

func (*TLSessionCreateSession) XXX_DiscardUnknown

func (m *TLSessionCreateSession) XXX_DiscardUnknown()

func (*TLSessionCreateSession) XXX_Marshal

func (m *TLSessionCreateSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionCreateSession) XXX_Merge

func (m *TLSessionCreateSession) XXX_Merge(src proto.Message)

func (*TLSessionCreateSession) XXX_Size

func (m *TLSessionCreateSession) XXX_Size() int

func (*TLSessionCreateSession) XXX_Unmarshal

func (m *TLSessionCreateSession) XXX_Unmarshal(b []byte) error

type TLSessionPushRpcResultData

type TLSessionPushRpcResultData struct {
	Constructor          TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.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"`
	ClientReqMsgId       int64         `protobuf:"varint,5,opt,name=client_req_msg_id,json=clientReqMsgId,proto3" json:"client_req_msg_id,omitempty"`
	RpcResultData        []byte        `protobuf:"bytes,6,opt,name=rpc_result_data,json=rpcResultData,proto3" json:"rpc_result_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

-------------------------------------------------------------------------------------------- session.pushRpcResultData auth_key_id:long session_id:long client_req_msg_id:long rpc_result_data:bytes = Bool;

func (*TLSessionPushRpcResultData) CalcByteSize

func (m *TLSessionPushRpcResultData) CalcByteSize(layer int32) int

func (*TLSessionPushRpcResultData) DebugString

func (m *TLSessionPushRpcResultData) DebugString() string

func (*TLSessionPushRpcResultData) Decode

func (*TLSessionPushRpcResultData) Descriptor

func (*TLSessionPushRpcResultData) Descriptor() ([]byte, []int)

func (*TLSessionPushRpcResultData) Encode

func (*TLSessionPushRpcResultData) GetAuthKeyId

func (m *TLSessionPushRpcResultData) GetAuthKeyId() int64

func (*TLSessionPushRpcResultData) GetClientReqMsgId

func (m *TLSessionPushRpcResultData) GetClientReqMsgId() int64

func (*TLSessionPushRpcResultData) GetConstructor

func (m *TLSessionPushRpcResultData) GetConstructor() TLConstructor

func (*TLSessionPushRpcResultData) GetRpcResultData

func (m *TLSessionPushRpcResultData) GetRpcResultData() []byte

func (*TLSessionPushRpcResultData) GetSessionId

func (m *TLSessionPushRpcResultData) GetSessionId() int64

func (*TLSessionPushRpcResultData) GoString

func (this *TLSessionPushRpcResultData) GoString() string

func (*TLSessionPushRpcResultData) Marshal

func (m *TLSessionPushRpcResultData) Marshal() (dAtA []byte, err error)

func (*TLSessionPushRpcResultData) MarshalTo

func (m *TLSessionPushRpcResultData) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionPushRpcResultData) MarshalToSizedBuffer

func (m *TLSessionPushRpcResultData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionPushRpcResultData) ProtoMessage

func (*TLSessionPushRpcResultData) ProtoMessage()

func (*TLSessionPushRpcResultData) Reset

func (m *TLSessionPushRpcResultData) Reset()

func (*TLSessionPushRpcResultData) Size

func (m *TLSessionPushRpcResultData) Size() (n int)

func (*TLSessionPushRpcResultData) String

func (m *TLSessionPushRpcResultData) String() string

func (*TLSessionPushRpcResultData) Unmarshal

func (m *TLSessionPushRpcResultData) Unmarshal(dAtA []byte) error

func (*TLSessionPushRpcResultData) XXX_DiscardUnknown

func (m *TLSessionPushRpcResultData) XXX_DiscardUnknown()

func (*TLSessionPushRpcResultData) XXX_Marshal

func (m *TLSessionPushRpcResultData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionPushRpcResultData) XXX_Merge

func (m *TLSessionPushRpcResultData) XXX_Merge(src proto.Message)

func (*TLSessionPushRpcResultData) XXX_Size

func (m *TLSessionPushRpcResultData) XXX_Size() int

func (*TLSessionPushRpcResultData) XXX_Unmarshal

func (m *TLSessionPushRpcResultData) XXX_Unmarshal(b []byte) error

type TLSessionPushSessionUpdatesData

type TLSessionPushSessionUpdatesData struct {
	Constructor          TLConstructor    `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.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"`
	Updates              *mtproto.Updates `protobuf:"bytes,5,opt,name=updates,proto3" json:"updates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

-------------------------------------------------------------------------------------------- session.pushSessionUpdatesData auth_key_id:long session_id:long updates:Updates = Bool;

func (*TLSessionPushSessionUpdatesData) CalcByteSize

func (m *TLSessionPushSessionUpdatesData) CalcByteSize(layer int32) int

func (*TLSessionPushSessionUpdatesData) DebugString

func (m *TLSessionPushSessionUpdatesData) DebugString() string

func (*TLSessionPushSessionUpdatesData) Decode

func (*TLSessionPushSessionUpdatesData) Descriptor

func (*TLSessionPushSessionUpdatesData) Descriptor() ([]byte, []int)

func (*TLSessionPushSessionUpdatesData) Encode

func (*TLSessionPushSessionUpdatesData) GetAuthKeyId

func (m *TLSessionPushSessionUpdatesData) GetAuthKeyId() int64

func (*TLSessionPushSessionUpdatesData) GetConstructor

func (m *TLSessionPushSessionUpdatesData) GetConstructor() TLConstructor

func (*TLSessionPushSessionUpdatesData) GetSessionId

func (m *TLSessionPushSessionUpdatesData) GetSessionId() int64

func (*TLSessionPushSessionUpdatesData) GetUpdates

func (*TLSessionPushSessionUpdatesData) GoString

func (this *TLSessionPushSessionUpdatesData) GoString() string

func (*TLSessionPushSessionUpdatesData) Marshal

func (m *TLSessionPushSessionUpdatesData) Marshal() (dAtA []byte, err error)

func (*TLSessionPushSessionUpdatesData) MarshalTo

func (m *TLSessionPushSessionUpdatesData) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionPushSessionUpdatesData) MarshalToSizedBuffer

func (m *TLSessionPushSessionUpdatesData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionPushSessionUpdatesData) ProtoMessage

func (*TLSessionPushSessionUpdatesData) ProtoMessage()

func (*TLSessionPushSessionUpdatesData) Reset

func (*TLSessionPushSessionUpdatesData) Size

func (m *TLSessionPushSessionUpdatesData) Size() (n int)

func (*TLSessionPushSessionUpdatesData) String

func (*TLSessionPushSessionUpdatesData) Unmarshal

func (m *TLSessionPushSessionUpdatesData) Unmarshal(dAtA []byte) error

func (*TLSessionPushSessionUpdatesData) XXX_DiscardUnknown

func (m *TLSessionPushSessionUpdatesData) XXX_DiscardUnknown()

func (*TLSessionPushSessionUpdatesData) XXX_Marshal

func (m *TLSessionPushSessionUpdatesData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionPushSessionUpdatesData) XXX_Merge

func (m *TLSessionPushSessionUpdatesData) XXX_Merge(src proto.Message)

func (*TLSessionPushSessionUpdatesData) XXX_Size

func (m *TLSessionPushSessionUpdatesData) XXX_Size() int

func (*TLSessionPushSessionUpdatesData) XXX_Unmarshal

func (m *TLSessionPushSessionUpdatesData) XXX_Unmarshal(b []byte) error

type TLSessionPushUpdatesData

type TLSessionPushUpdatesData struct {
	Constructor          TLConstructor    `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	AuthKeyId            int64            `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
	Notification         bool             `protobuf:"varint,4,opt,name=notification,proto3" json:"notification,omitempty"`
	Updates              *mtproto.Updates `protobuf:"bytes,5,opt,name=updates,proto3" json:"updates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

-------------------------------------------------------------------------------------------- session.pushUpdatesData flags:# auth_key_id:long notification:flags.0?true updates:Updates = Bool;

func (*TLSessionPushUpdatesData) CalcByteSize

func (m *TLSessionPushUpdatesData) CalcByteSize(layer int32) int

func (*TLSessionPushUpdatesData) DebugString

func (m *TLSessionPushUpdatesData) DebugString() string

func (*TLSessionPushUpdatesData) Decode

func (*TLSessionPushUpdatesData) Descriptor

func (*TLSessionPushUpdatesData) Descriptor() ([]byte, []int)

func (*TLSessionPushUpdatesData) Encode

func (m *TLSessionPushUpdatesData) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionPushUpdatesData) GetAuthKeyId

func (m *TLSessionPushUpdatesData) GetAuthKeyId() int64

func (*TLSessionPushUpdatesData) GetConstructor

func (m *TLSessionPushUpdatesData) GetConstructor() TLConstructor

func (*TLSessionPushUpdatesData) GetNotification

func (m *TLSessionPushUpdatesData) GetNotification() bool

func (*TLSessionPushUpdatesData) GetUpdates

func (m *TLSessionPushUpdatesData) GetUpdates() *mtproto.Updates

func (*TLSessionPushUpdatesData) GoString

func (this *TLSessionPushUpdatesData) GoString() string

func (*TLSessionPushUpdatesData) Marshal

func (m *TLSessionPushUpdatesData) Marshal() (dAtA []byte, err error)

func (*TLSessionPushUpdatesData) MarshalTo

func (m *TLSessionPushUpdatesData) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionPushUpdatesData) MarshalToSizedBuffer

func (m *TLSessionPushUpdatesData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionPushUpdatesData) ProtoMessage

func (*TLSessionPushUpdatesData) ProtoMessage()

func (*TLSessionPushUpdatesData) Reset

func (m *TLSessionPushUpdatesData) Reset()

func (*TLSessionPushUpdatesData) Size

func (m *TLSessionPushUpdatesData) Size() (n int)

func (*TLSessionPushUpdatesData) String

func (m *TLSessionPushUpdatesData) String() string

func (*TLSessionPushUpdatesData) Unmarshal

func (m *TLSessionPushUpdatesData) Unmarshal(dAtA []byte) error

func (*TLSessionPushUpdatesData) XXX_DiscardUnknown

func (m *TLSessionPushUpdatesData) XXX_DiscardUnknown()

func (*TLSessionPushUpdatesData) XXX_Marshal

func (m *TLSessionPushUpdatesData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionPushUpdatesData) XXX_Merge

func (m *TLSessionPushUpdatesData) XXX_Merge(src proto.Message)

func (*TLSessionPushUpdatesData) XXX_Size

func (m *TLSessionPushUpdatesData) XXX_Size() int

func (*TLSessionPushUpdatesData) XXX_Unmarshal

func (m *TLSessionPushUpdatesData) XXX_Unmarshal(b []byte) error

type TLSessionQueryAuthKey

type TLSessionQueryAuthKey struct {
	Constructor          TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	AuthKeyId            int64         `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

-------------------------------------------------------------------------------------------- session.queryAuthKey auth_key_id:long = AuthKeyInfo;

func (*TLSessionQueryAuthKey) CalcByteSize

func (m *TLSessionQueryAuthKey) CalcByteSize(layer int32) int

func (*TLSessionQueryAuthKey) DebugString

func (m *TLSessionQueryAuthKey) DebugString() string

func (*TLSessionQueryAuthKey) Decode

func (m *TLSessionQueryAuthKey) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionQueryAuthKey) Descriptor

func (*TLSessionQueryAuthKey) Descriptor() ([]byte, []int)

func (*TLSessionQueryAuthKey) Encode

func (m *TLSessionQueryAuthKey) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionQueryAuthKey) GetAuthKeyId

func (m *TLSessionQueryAuthKey) GetAuthKeyId() int64

func (*TLSessionQueryAuthKey) GetConstructor

func (m *TLSessionQueryAuthKey) GetConstructor() TLConstructor

func (*TLSessionQueryAuthKey) GoString

func (this *TLSessionQueryAuthKey) GoString() string

func (*TLSessionQueryAuthKey) Marshal

func (m *TLSessionQueryAuthKey) Marshal() (dAtA []byte, err error)

func (*TLSessionQueryAuthKey) MarshalTo

func (m *TLSessionQueryAuthKey) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionQueryAuthKey) MarshalToSizedBuffer

func (m *TLSessionQueryAuthKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionQueryAuthKey) ProtoMessage

func (*TLSessionQueryAuthKey) ProtoMessage()

func (*TLSessionQueryAuthKey) Reset

func (m *TLSessionQueryAuthKey) Reset()

func (*TLSessionQueryAuthKey) Size

func (m *TLSessionQueryAuthKey) Size() (n int)

func (*TLSessionQueryAuthKey) String

func (m *TLSessionQueryAuthKey) String() string

func (*TLSessionQueryAuthKey) Unmarshal

func (m *TLSessionQueryAuthKey) Unmarshal(dAtA []byte) error

func (*TLSessionQueryAuthKey) XXX_DiscardUnknown

func (m *TLSessionQueryAuthKey) XXX_DiscardUnknown()

func (*TLSessionQueryAuthKey) XXX_Marshal

func (m *TLSessionQueryAuthKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionQueryAuthKey) XXX_Merge

func (m *TLSessionQueryAuthKey) XXX_Merge(src proto.Message)

func (*TLSessionQueryAuthKey) XXX_Size

func (m *TLSessionQueryAuthKey) XXX_Size() int

func (*TLSessionQueryAuthKey) XXX_Unmarshal

func (m *TLSessionQueryAuthKey) XXX_Unmarshal(b []byte) error

type TLSessionSendDataToSession

type TLSessionSendDataToSession struct {
	Constructor          TLConstructor      `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	Data                 *SessionClientData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

-------------------------------------------------------------------------------------------- session.sendDataToSession data:SessionClientData = Bool;

func (*TLSessionSendDataToSession) CalcByteSize

func (m *TLSessionSendDataToSession) CalcByteSize(layer int32) int

func (*TLSessionSendDataToSession) DebugString

func (m *TLSessionSendDataToSession) DebugString() string

func (*TLSessionSendDataToSession) Decode

func (*TLSessionSendDataToSession) Descriptor

func (*TLSessionSendDataToSession) Descriptor() ([]byte, []int)

func (*TLSessionSendDataToSession) Encode

func (*TLSessionSendDataToSession) GetConstructor

func (m *TLSessionSendDataToSession) GetConstructor() TLConstructor

func (*TLSessionSendDataToSession) GetData

func (*TLSessionSendDataToSession) GoString

func (this *TLSessionSendDataToSession) GoString() string

func (*TLSessionSendDataToSession) Marshal

func (m *TLSessionSendDataToSession) Marshal() (dAtA []byte, err error)

func (*TLSessionSendDataToSession) MarshalTo

func (m *TLSessionSendDataToSession) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionSendDataToSession) MarshalToSizedBuffer

func (m *TLSessionSendDataToSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionSendDataToSession) ProtoMessage

func (*TLSessionSendDataToSession) ProtoMessage()

func (*TLSessionSendDataToSession) Reset

func (m *TLSessionSendDataToSession) Reset()

func (*TLSessionSendDataToSession) Size

func (m *TLSessionSendDataToSession) Size() (n int)

func (*TLSessionSendDataToSession) String

func (m *TLSessionSendDataToSession) String() string

func (*TLSessionSendDataToSession) Unmarshal

func (m *TLSessionSendDataToSession) Unmarshal(dAtA []byte) error

func (*TLSessionSendDataToSession) XXX_DiscardUnknown

func (m *TLSessionSendDataToSession) XXX_DiscardUnknown()

func (*TLSessionSendDataToSession) XXX_Marshal

func (m *TLSessionSendDataToSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionSendDataToSession) XXX_Merge

func (m *TLSessionSendDataToSession) XXX_Merge(src proto.Message)

func (*TLSessionSendDataToSession) XXX_Size

func (m *TLSessionSendDataToSession) XXX_Size() int

func (*TLSessionSendDataToSession) XXX_Unmarshal

func (m *TLSessionSendDataToSession) XXX_Unmarshal(b []byte) error

type TLSessionSendHttpDataToSession

type TLSessionSendHttpDataToSession struct {
	Constructor          TLConstructor      `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	Client               *SessionClientData `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

-------------------------------------------------------------------------------------------- session.sendHttpDataToSession client:SessionClientData = HttpSessionData;

func (*TLSessionSendHttpDataToSession) CalcByteSize

func (m *TLSessionSendHttpDataToSession) CalcByteSize(layer int32) int

func (*TLSessionSendHttpDataToSession) DebugString

func (m *TLSessionSendHttpDataToSession) DebugString() string

func (*TLSessionSendHttpDataToSession) Decode

func (*TLSessionSendHttpDataToSession) Descriptor

func (*TLSessionSendHttpDataToSession) Descriptor() ([]byte, []int)

func (*TLSessionSendHttpDataToSession) Encode

func (*TLSessionSendHttpDataToSession) GetClient

func (*TLSessionSendHttpDataToSession) GetConstructor

func (m *TLSessionSendHttpDataToSession) GetConstructor() TLConstructor

func (*TLSessionSendHttpDataToSession) GoString

func (this *TLSessionSendHttpDataToSession) GoString() string

func (*TLSessionSendHttpDataToSession) Marshal

func (m *TLSessionSendHttpDataToSession) Marshal() (dAtA []byte, err error)

func (*TLSessionSendHttpDataToSession) MarshalTo

func (m *TLSessionSendHttpDataToSession) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionSendHttpDataToSession) MarshalToSizedBuffer

func (m *TLSessionSendHttpDataToSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionSendHttpDataToSession) ProtoMessage

func (*TLSessionSendHttpDataToSession) ProtoMessage()

func (*TLSessionSendHttpDataToSession) Reset

func (m *TLSessionSendHttpDataToSession) Reset()

func (*TLSessionSendHttpDataToSession) Size

func (m *TLSessionSendHttpDataToSession) Size() (n int)

func (*TLSessionSendHttpDataToSession) String

func (*TLSessionSendHttpDataToSession) Unmarshal

func (m *TLSessionSendHttpDataToSession) Unmarshal(dAtA []byte) error

func (*TLSessionSendHttpDataToSession) XXX_DiscardUnknown

func (m *TLSessionSendHttpDataToSession) XXX_DiscardUnknown()

func (*TLSessionSendHttpDataToSession) XXX_Marshal

func (m *TLSessionSendHttpDataToSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionSendHttpDataToSession) XXX_Merge

func (m *TLSessionSendHttpDataToSession) XXX_Merge(src proto.Message)

func (*TLSessionSendHttpDataToSession) XXX_Size

func (m *TLSessionSendHttpDataToSession) XXX_Size() int

func (*TLSessionSendHttpDataToSession) XXX_Unmarshal

func (m *TLSessionSendHttpDataToSession) XXX_Unmarshal(b []byte) error

type TLSessionSetAuthKey

type TLSessionSetAuthKey struct {
	Constructor          TLConstructor        `protobuf:"varint,1,opt,name=constructor,proto3,enum=session.TLConstructor" json:"constructor,omitempty"`
	AuthKey              *mtproto.AuthKeyInfo `protobuf:"bytes,3,opt,name=auth_key,json=authKey,proto3" json:"auth_key,omitempty"`
	FutureSalt           *mtproto.FutureSalt  `protobuf:"bytes,4,opt,name=future_salt,json=futureSalt,proto3" json:"future_salt,omitempty"`
	ExpiresIn            int32                `protobuf:"varint,5,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

-------------------------------------------------------------------------------------------- session.setAuthKey auth_key:AuthKeyInfo future_salt:FutureSalt expires_in:int = Bool;

func (*TLSessionSetAuthKey) CalcByteSize

func (m *TLSessionSetAuthKey) CalcByteSize(layer int32) int

func (*TLSessionSetAuthKey) DebugString

func (m *TLSessionSetAuthKey) DebugString() string

func (*TLSessionSetAuthKey) Decode

func (m *TLSessionSetAuthKey) Decode(dBuf *mtproto.DecodeBuf) error

func (*TLSessionSetAuthKey) Descriptor

func (*TLSessionSetAuthKey) Descriptor() ([]byte, []int)

func (*TLSessionSetAuthKey) Encode

func (m *TLSessionSetAuthKey) Encode(x *mtproto.EncodeBuf, layer int32) error

func (*TLSessionSetAuthKey) GetAuthKey

func (m *TLSessionSetAuthKey) GetAuthKey() *mtproto.AuthKeyInfo

func (*TLSessionSetAuthKey) GetConstructor

func (m *TLSessionSetAuthKey) GetConstructor() TLConstructor

func (*TLSessionSetAuthKey) GetExpiresIn

func (m *TLSessionSetAuthKey) GetExpiresIn() int32

func (*TLSessionSetAuthKey) GetFutureSalt

func (m *TLSessionSetAuthKey) GetFutureSalt() *mtproto.FutureSalt

func (*TLSessionSetAuthKey) GoString

func (this *TLSessionSetAuthKey) GoString() string

func (*TLSessionSetAuthKey) Marshal

func (m *TLSessionSetAuthKey) Marshal() (dAtA []byte, err error)

func (*TLSessionSetAuthKey) MarshalTo

func (m *TLSessionSetAuthKey) MarshalTo(dAtA []byte) (int, error)

func (*TLSessionSetAuthKey) MarshalToSizedBuffer

func (m *TLSessionSetAuthKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSessionSetAuthKey) ProtoMessage

func (*TLSessionSetAuthKey) ProtoMessage()

func (*TLSessionSetAuthKey) Reset

func (m *TLSessionSetAuthKey) Reset()

func (*TLSessionSetAuthKey) Size

func (m *TLSessionSetAuthKey) Size() (n int)

func (*TLSessionSetAuthKey) String

func (m *TLSessionSetAuthKey) String() string

func (*TLSessionSetAuthKey) Unmarshal

func (m *TLSessionSetAuthKey) Unmarshal(dAtA []byte) error

func (*TLSessionSetAuthKey) XXX_DiscardUnknown

func (m *TLSessionSetAuthKey) XXX_DiscardUnknown()

func (*TLSessionSetAuthKey) XXX_Marshal

func (m *TLSessionSetAuthKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSessionSetAuthKey) XXX_Merge

func (m *TLSessionSetAuthKey) XXX_Merge(src proto.Message)

func (*TLSessionSetAuthKey) XXX_Size

func (m *TLSessionSetAuthKey) XXX_Size() int

func (*TLSessionSetAuthKey) XXX_Unmarshal

func (m *TLSessionSetAuthKey) XXX_Unmarshal(b []byte) error

type UnimplementedRPCSessionServer

type UnimplementedRPCSessionServer struct {
}

UnimplementedRPCSessionServer can be embedded to have forward compatible implementations.

func (*UnimplementedRPCSessionServer) SessionCloseSession

func (*UnimplementedRPCSessionServer) SessionCreateSession

func (*UnimplementedRPCSessionServer) SessionPushRpcResultData

func (*UnimplementedRPCSessionServer) SessionPushSessionUpdatesData

func (*UnimplementedRPCSessionServer) SessionPushSessionUpdatesData(ctx context.Context, req *TLSessionPushSessionUpdatesData) (*mtproto.Bool, error)

func (*UnimplementedRPCSessionServer) SessionPushUpdatesData

func (*UnimplementedRPCSessionServer) SessionQueryAuthKey

func (*UnimplementedRPCSessionServer) SessionSendDataToSession

func (*UnimplementedRPCSessionServer) SessionSendHttpDataToSession

func (*UnimplementedRPCSessionServer) SessionSetAuthKey

Jump to

Keyboard shortcuts

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