Documentation
¶
Index ¶
- Variables
- func PutCommandDecoder(protoType Type, e CommandDecoder)
- func PutDataEncoder(protoType Type, e DataEncoder)
- func PutResultEncoder(_ Type, _ ReplyEncoder)
- func PutStreamCommandDecoder(protoType Type, e StreamCommandDecoder)
- type ByteBuffer
- type ClientInfo
- func (*ClientInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ClientInfo) GetChanInfo() []byte
- func (x *ClientInfo) GetClient() string
- func (x *ClientInfo) GetConnInfo() []byte
- func (x *ClientInfo) GetUser() string
- func (v ClientInfo) MarshalEasyJSON(w *writer)
- func (m *ClientInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ClientInfo) MarshalToVT(dAtA []byte) (int, error)
- func (m *ClientInfo) MarshalVT() (dAtA []byte, err error)
- func (*ClientInfo) ProtoMessage()
- func (x *ClientInfo) ProtoReflect() protoreflect.Message
- func (x *ClientInfo) Reset()
- func (m *ClientInfo) SizeVT() (n int)
- func (x *ClientInfo) String() string
- func (v *ClientInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *ClientInfo) UnmarshalVT(dAtA []byte) error
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetConnect() *ConnectRequest
- func (x *Command) GetHistory() *HistoryRequest
- func (x *Command) GetId() uint32
- func (x *Command) GetPing() *PingRequest
- func (x *Command) GetPresence() *PresenceRequest
- func (x *Command) GetPresenceStats() *PresenceStatsRequest
- func (x *Command) GetPublish() *PublishRequest
- func (x *Command) GetRefresh() *RefreshRequest
- func (x *Command) GetRpc() *RPCRequest
- func (x *Command) GetSend() *SendRequest
- func (x *Command) GetSubRefresh() *SubRefreshRequest
- func (x *Command) GetSubscribe() *SubscribeRequest
- func (x *Command) GetUnsubscribe() *UnsubscribeRequest
- func (v Command) MarshalEasyJSON(w *writer)
- func (m *Command) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Command) MarshalToVT(dAtA []byte) (int, error)
- func (m *Command) MarshalVT() (dAtA []byte, err error)
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (m *Command) SizeVT() (n int)
- func (x *Command) String() string
- func (v *Command) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Command) UnmarshalVT(dAtA []byte) error
- type CommandDecoder
- type CommandEncoder
- type Connect
- func (*Connect) Descriptor() ([]byte, []int)deprecated
- func (x *Connect) GetClient() string
- func (x *Connect) GetData() []byte
- func (x *Connect) GetExpires() bool
- func (x *Connect) GetNode() string
- func (x *Connect) GetPing() uint32
- func (x *Connect) GetPong() bool
- func (x *Connect) GetSession() string
- func (x *Connect) GetSubs() map[string]*SubscribeResult
- func (x *Connect) GetTime() int64
- func (x *Connect) GetTtl() uint32
- func (x *Connect) GetVersion() string
- func (v Connect) MarshalEasyJSON(w *writer)
- func (m *Connect) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Connect) MarshalToVT(dAtA []byte) (int, error)
- func (m *Connect) MarshalVT() (dAtA []byte, err error)
- func (*Connect) ProtoMessage()
- func (x *Connect) ProtoReflect() protoreflect.Message
- func (x *Connect) Reset()
- func (m *Connect) SizeVT() (n int)
- func (x *Connect) String() string
- func (v *Connect) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Connect) UnmarshalVT(dAtA []byte) error
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectRequest) GetData() []byte
- func (x *ConnectRequest) GetHeaders() map[string]string
- func (x *ConnectRequest) GetName() string
- func (x *ConnectRequest) GetSubs() map[string]*SubscribeRequest
- func (x *ConnectRequest) GetToken() string
- func (x *ConnectRequest) GetVersion() string
- func (v ConnectRequest) MarshalEasyJSON(w *writer)
- func (m *ConnectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ConnectRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ConnectRequest) MarshalVT() (dAtA []byte, err error)
- func (*ConnectRequest) ProtoMessage()
- func (x *ConnectRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectRequest) Reset()
- func (m *ConnectRequest) SizeVT() (n int)
- func (x *ConnectRequest) String() string
- func (v *ConnectRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *ConnectRequest) UnmarshalVT(dAtA []byte) error
- type ConnectResult
- func (*ConnectResult) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectResult) GetClient() string
- func (x *ConnectResult) GetData() []byte
- func (x *ConnectResult) GetExpires() bool
- func (x *ConnectResult) GetNode() string
- func (x *ConnectResult) GetPing() uint32
- func (x *ConnectResult) GetPong() bool
- func (x *ConnectResult) GetSession() string
- func (x *ConnectResult) GetSubs() map[string]*SubscribeResult
- func (x *ConnectResult) GetTime() int64
- func (x *ConnectResult) GetTtl() uint32
- func (x *ConnectResult) GetVersion() string
- func (v ConnectResult) MarshalEasyJSON(w *writer)
- func (m *ConnectResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ConnectResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *ConnectResult) MarshalVT() (dAtA []byte, err error)
- func (*ConnectResult) ProtoMessage()
- func (x *ConnectResult) ProtoReflect() protoreflect.Message
- func (x *ConnectResult) Reset()
- func (m *ConnectResult) SizeVT() (n int)
- func (x *ConnectResult) String() string
- func (v *ConnectResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *ConnectResult) UnmarshalVT(dAtA []byte) error
- type DataEncoder
- type Disconnect
- func (*Disconnect) Descriptor() ([]byte, []int)deprecated
- func (x *Disconnect) GetCode() uint32
- func (x *Disconnect) GetReason() string
- func (x *Disconnect) GetReconnect() bool
- func (v Disconnect) MarshalEasyJSON(w *writer)
- func (m *Disconnect) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Disconnect) MarshalToVT(dAtA []byte) (int, error)
- func (m *Disconnect) MarshalVT() (dAtA []byte, err error)
- func (*Disconnect) ProtoMessage()
- func (x *Disconnect) ProtoReflect() protoreflect.Message
- func (x *Disconnect) Reset()
- func (m *Disconnect) SizeVT() (n int)
- func (x *Disconnect) String() string
- func (v *Disconnect) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Disconnect) UnmarshalVT(dAtA []byte) error
- type EmulationRequest
- func (*EmulationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmulationRequest) GetData() []byte
- func (x *EmulationRequest) GetNode() string
- func (x *EmulationRequest) GetSession() string
- func (v EmulationRequest) MarshalEasyJSON(w *writer)
- func (m *EmulationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *EmulationRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *EmulationRequest) MarshalVT() (dAtA []byte, err error)
- func (*EmulationRequest) ProtoMessage()
- func (x *EmulationRequest) ProtoReflect() protoreflect.Message
- func (x *EmulationRequest) Reset()
- func (m *EmulationRequest) SizeVT() (n int)
- func (x *EmulationRequest) String() string
- func (v *EmulationRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *EmulationRequest) UnmarshalVT(dAtA []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() uint32
- func (x *Error) GetMessage() string
- func (x *Error) GetTemporary() bool
- func (v Error) MarshalEasyJSON(w *writer)
- func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Error) MarshalToVT(dAtA []byte) (int, error)
- func (m *Error) MarshalVT() (dAtA []byte, err error)
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (m *Error) SizeVT() (n int)
- func (x *Error) String() string
- func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Error) UnmarshalVT(dAtA []byte) error
- type FrameType
- type HistoryRequest
- func (*HistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryRequest) GetChannel() string
- func (x *HistoryRequest) GetLimit() int32
- func (x *HistoryRequest) GetReverse() bool
- func (x *HistoryRequest) GetSince() *StreamPosition
- func (v HistoryRequest) MarshalEasyJSON(w *writer)
- func (m *HistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HistoryRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *HistoryRequest) MarshalVT() (dAtA []byte, err error)
- func (*HistoryRequest) ProtoMessage()
- func (x *HistoryRequest) ProtoReflect() protoreflect.Message
- func (x *HistoryRequest) Reset()
- func (m *HistoryRequest) SizeVT() (n int)
- func (x *HistoryRequest) String() string
- func (v *HistoryRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *HistoryRequest) UnmarshalVT(dAtA []byte) error
- type HistoryResult
- func (*HistoryResult) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryResult) GetEpoch() string
- func (x *HistoryResult) GetOffset() uint64
- func (x *HistoryResult) GetPublications() []*Publication
- func (v HistoryResult) MarshalEasyJSON(w *writer)
- func (m *HistoryResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HistoryResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *HistoryResult) MarshalVT() (dAtA []byte, err error)
- func (*HistoryResult) ProtoMessage()
- func (x *HistoryResult) ProtoReflect() protoreflect.Message
- func (x *HistoryResult) Reset()
- func (m *HistoryResult) SizeVT() (n int)
- func (x *HistoryResult) String() string
- func (v *HistoryResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *HistoryResult) UnmarshalVT(dAtA []byte) error
- type JSONCommandDecoder
- type JSONCommandEncoder
- type JSONDataEncoder
- type JSONPushEncoder
- func (e *JSONPushEncoder) Encode(message *Push) ([]byte, error)
- func (e *JSONPushEncoder) EncodeConnect(message *Connect, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeDisconnect(message *Disconnect, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeJoin(message *Join, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeLeave(message *Leave, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeMessage(message *Message, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodePublication(message *Publication, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeRefresh(message *Refresh, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeSubscribe(message *Subscribe, reuse ...[]byte) ([]byte, error)
- func (e *JSONPushEncoder) EncodeUnsubscribe(message *Unsubscribe, reuse ...[]byte) ([]byte, error)
- type JSONReplyDecoder
- type JSONReplyEncoder
- type JSONResultEncoder
- func (e *JSONResultEncoder) EncodeConnectResult(res *ConnectResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeHistoryResult(res *HistoryResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodePingResult(res *PingResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodePresenceResult(res *PresenceResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodePresenceStatsResult(res *PresenceStatsResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodePublishResult(res *PublishResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeRPCResult(res *RPCResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeRefreshResult(res *RefreshResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeSubRefreshResult(res *SubRefreshResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeSubscribeResult(res *SubscribeResult) ([]byte, error)
- func (e *JSONResultEncoder) EncodeUnsubscribeResult(res *UnsubscribeResult) ([]byte, error)
- type JSONStreamCommandDecoder
- type Join
- func (*Join) Descriptor() ([]byte, []int)deprecated
- func (x *Join) GetInfo() *ClientInfo
- func (v Join) MarshalEasyJSON(w *writer)
- func (m *Join) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Join) MarshalToVT(dAtA []byte) (int, error)
- func (m *Join) MarshalVT() (dAtA []byte, err error)
- func (*Join) ProtoMessage()
- func (x *Join) ProtoReflect() protoreflect.Message
- func (x *Join) Reset()
- func (m *Join) SizeVT() (n int)
- func (x *Join) String() string
- func (v *Join) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Join) UnmarshalVT(dAtA []byte) error
- type Leave
- func (*Leave) Descriptor() ([]byte, []int)deprecated
- func (x *Leave) GetInfo() *ClientInfo
- func (v Leave) MarshalEasyJSON(w *writer)
- func (m *Leave) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Leave) MarshalToVT(dAtA []byte) (int, error)
- func (m *Leave) MarshalVT() (dAtA []byte, err error)
- func (*Leave) ProtoMessage()
- func (x *Leave) ProtoReflect() protoreflect.Message
- func (x *Leave) Reset()
- func (m *Leave) SizeVT() (n int)
- func (x *Leave) String() string
- func (v *Leave) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Leave) UnmarshalVT(dAtA []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetData() []byte
- func (v Message) MarshalEasyJSON(w *writer)
- func (m *Message) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Message) MarshalToVT(dAtA []byte) (int, error)
- func (m *Message) MarshalVT() (dAtA []byte, err error)
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (m *Message) SizeVT() (n int)
- func (x *Message) String() string
- func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Message) UnmarshalVT(dAtA []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)deprecated
- func (v PingRequest) MarshalEasyJSON(w *writer)
- func (m *PingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalVT() (dAtA []byte, err error)
- func (*PingRequest) ProtoMessage()
- func (x *PingRequest) ProtoReflect() protoreflect.Message
- func (x *PingRequest) Reset()
- func (m *PingRequest) SizeVT() (n int)
- func (x *PingRequest) String() string
- func (v *PingRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PingRequest) UnmarshalVT(dAtA []byte) error
- type PingResult
- func (*PingResult) Descriptor() ([]byte, []int)deprecated
- func (v PingResult) MarshalEasyJSON(w *writer)
- func (m *PingResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PingResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *PingResult) MarshalVT() (dAtA []byte, err error)
- func (*PingResult) ProtoMessage()
- func (x *PingResult) ProtoReflect() protoreflect.Message
- func (x *PingResult) Reset()
- func (m *PingResult) SizeVT() (n int)
- func (x *PingResult) String() string
- func (v *PingResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PingResult) UnmarshalVT(dAtA []byte) error
- type PresenceRequest
- func (*PresenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PresenceRequest) GetChannel() string
- func (v PresenceRequest) MarshalEasyJSON(w *writer)
- func (m *PresenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PresenceRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PresenceRequest) MarshalVT() (dAtA []byte, err error)
- func (*PresenceRequest) ProtoMessage()
- func (x *PresenceRequest) ProtoReflect() protoreflect.Message
- func (x *PresenceRequest) Reset()
- func (m *PresenceRequest) SizeVT() (n int)
- func (x *PresenceRequest) String() string
- func (v *PresenceRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PresenceRequest) UnmarshalVT(dAtA []byte) error
- type PresenceResult
- func (*PresenceResult) Descriptor() ([]byte, []int)deprecated
- func (x *PresenceResult) GetPresence() map[string]*ClientInfo
- func (v PresenceResult) MarshalEasyJSON(w *writer)
- func (m *PresenceResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PresenceResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *PresenceResult) MarshalVT() (dAtA []byte, err error)
- func (*PresenceResult) ProtoMessage()
- func (x *PresenceResult) ProtoReflect() protoreflect.Message
- func (x *PresenceResult) Reset()
- func (m *PresenceResult) SizeVT() (n int)
- func (x *PresenceResult) String() string
- func (v *PresenceResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PresenceResult) UnmarshalVT(dAtA []byte) error
- type PresenceStatsRequest
- func (*PresenceStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PresenceStatsRequest) GetChannel() string
- func (v PresenceStatsRequest) MarshalEasyJSON(w *writer)
- func (m *PresenceStatsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PresenceStatsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PresenceStatsRequest) MarshalVT() (dAtA []byte, err error)
- func (*PresenceStatsRequest) ProtoMessage()
- func (x *PresenceStatsRequest) ProtoReflect() protoreflect.Message
- func (x *PresenceStatsRequest) Reset()
- func (m *PresenceStatsRequest) SizeVT() (n int)
- func (x *PresenceStatsRequest) String() string
- func (v *PresenceStatsRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PresenceStatsRequest) UnmarshalVT(dAtA []byte) error
- type PresenceStatsResult
- func (*PresenceStatsResult) Descriptor() ([]byte, []int)deprecated
- func (x *PresenceStatsResult) GetNumClients() uint32
- func (x *PresenceStatsResult) GetNumUsers() uint32
- func (v PresenceStatsResult) MarshalEasyJSON(w *writer)
- func (m *PresenceStatsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PresenceStatsResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *PresenceStatsResult) MarshalVT() (dAtA []byte, err error)
- func (*PresenceStatsResult) ProtoMessage()
- func (x *PresenceStatsResult) ProtoReflect() protoreflect.Message
- func (x *PresenceStatsResult) Reset()
- func (m *PresenceStatsResult) SizeVT() (n int)
- func (x *PresenceStatsResult) String() string
- func (v *PresenceStatsResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PresenceStatsResult) UnmarshalVT(dAtA []byte) error
- type ProtobufCommandDecoder
- type ProtobufCommandEncoder
- type ProtobufDataEncoder
- type ProtobufPushEncoder
- func (e *ProtobufPushEncoder) Encode(message *Push) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeConnect(message *Connect, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeDisconnect(message *Disconnect, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeJoin(message *Join, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeLeave(message *Leave, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeMessage(message *Message, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodePublication(message *Publication, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeRefresh(message *Refresh, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeSubscribe(message *Subscribe, reuse ...[]byte) ([]byte, error)
- func (e *ProtobufPushEncoder) EncodeUnsubscribe(message *Unsubscribe, reuse ...[]byte) ([]byte, error)
- type ProtobufReplyDecoder
- type ProtobufReplyEncoder
- type ProtobufResultEncoder
- func (e *ProtobufResultEncoder) EncodeConnectResult(res *ConnectResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeHistoryResult(res *HistoryResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodePingResult(res *PingResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodePresenceResult(res *PresenceResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodePresenceStatsResult(res *PresenceStatsResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodePublishResult(res *PublishResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeRPCResult(res *RPCResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeRefreshResult(res *RefreshResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeSubRefreshResult(res *SubRefreshResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeSubscribeResult(res *SubscribeResult) ([]byte, error)
- func (e *ProtobufResultEncoder) EncodeUnsubscribeResult(res *UnsubscribeResult) ([]byte, error)
- type ProtobufStreamCommandDecoder
- type Publication
- func (*Publication) Descriptor() ([]byte, []int)deprecated
- func (x *Publication) GetChannel() string
- func (x *Publication) GetData() []byte
- func (x *Publication) GetDelta() bool
- func (x *Publication) GetInfo() *ClientInfo
- func (x *Publication) GetMeta() []byte
- func (x *Publication) GetOffset() uint64
- func (x *Publication) GetTags() map[string]string
- func (x *Publication) GetTime() int64
- func (v Publication) MarshalEasyJSON(w *writer)
- func (m *Publication) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Publication) MarshalToVT(dAtA []byte) (int, error)
- func (m *Publication) MarshalVT() (dAtA []byte, err error)
- func (*Publication) ProtoMessage()
- func (x *Publication) ProtoReflect() protoreflect.Message
- func (x *Publication) Reset()
- func (m *Publication) SizeVT() (n int)
- func (x *Publication) String() string
- func (v *Publication) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Publication) UnmarshalVT(dAtA []byte) error
- type PublishRequest
- func (*PublishRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishRequest) GetChannel() string
- func (x *PublishRequest) GetData() []byte
- func (x *PublishRequest) GetMeta() []byte
- func (v PublishRequest) MarshalEasyJSON(w *writer)
- func (m *PublishRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PublishRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PublishRequest) MarshalVT() (dAtA []byte, err error)
- func (*PublishRequest) ProtoMessage()
- func (x *PublishRequest) ProtoReflect() protoreflect.Message
- func (x *PublishRequest) Reset()
- func (m *PublishRequest) SizeVT() (n int)
- func (x *PublishRequest) String() string
- func (v *PublishRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PublishRequest) UnmarshalVT(dAtA []byte) error
- type PublishResult
- func (*PublishResult) Descriptor() ([]byte, []int)deprecated
- func (v PublishResult) MarshalEasyJSON(w *writer)
- func (m *PublishResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PublishResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *PublishResult) MarshalVT() (dAtA []byte, err error)
- func (*PublishResult) ProtoMessage()
- func (x *PublishResult) ProtoReflect() protoreflect.Message
- func (x *PublishResult) Reset()
- func (m *PublishResult) SizeVT() (n int)
- func (x *PublishResult) String() string
- func (v *PublishResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *PublishResult) UnmarshalVT(dAtA []byte) error
- type Push
- func (*Push) Descriptor() ([]byte, []int)deprecated
- func (x *Push) GetChannel() string
- func (x *Push) GetConnect() *Connect
- func (x *Push) GetDisconnect() *Disconnect
- func (x *Push) GetJoin() *Join
- func (x *Push) GetLeave() *Leave
- func (x *Push) GetMessage() *Message
- func (x *Push) GetPub() *Publication
- func (x *Push) GetRefresh() *Refresh
- func (x *Push) GetSubscribe() *Subscribe
- func (x *Push) GetUnsubscribe() *Unsubscribe
- func (v Push) MarshalEasyJSON(w *writer)
- func (m *Push) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Push) MarshalToVT(dAtA []byte) (int, error)
- func (m *Push) MarshalVT() (dAtA []byte, err error)
- func (*Push) ProtoMessage()
- func (x *Push) ProtoReflect() protoreflect.Message
- func (x *Push) Reset()
- func (m *Push) SizeVT() (n int)
- func (x *Push) String() string
- func (v *Push) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Push) UnmarshalVT(dAtA []byte) error
- type PushEncoder
- type RPCRequest
- func (*RPCRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRequest) GetData() []byte
- func (x *RPCRequest) GetMethod() string
- func (v RPCRequest) MarshalEasyJSON(w *writer)
- func (m *RPCRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RPCRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RPCRequest) MarshalVT() (dAtA []byte, err error)
- func (*RPCRequest) ProtoMessage()
- func (x *RPCRequest) ProtoReflect() protoreflect.Message
- func (x *RPCRequest) Reset()
- func (m *RPCRequest) SizeVT() (n int)
- func (x *RPCRequest) String() string
- func (v *RPCRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *RPCRequest) UnmarshalVT(dAtA []byte) error
- type RPCResult
- func (*RPCResult) Descriptor() ([]byte, []int)deprecated
- func (x *RPCResult) GetData() []byte
- func (v RPCResult) MarshalEasyJSON(w *writer)
- func (m *RPCResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RPCResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *RPCResult) MarshalVT() (dAtA []byte, err error)
- func (*RPCResult) ProtoMessage()
- func (x *RPCResult) ProtoReflect() protoreflect.Message
- func (x *RPCResult) Reset()
- func (m *RPCResult) SizeVT() (n int)
- func (x *RPCResult) String() string
- func (v *RPCResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *RPCResult) UnmarshalVT(dAtA []byte) error
- type Raw
- type Refresh
- func (*Refresh) Descriptor() ([]byte, []int)deprecated
- func (x *Refresh) GetExpires() bool
- func (x *Refresh) GetTtl() uint32
- func (v Refresh) MarshalEasyJSON(w *writer)
- func (m *Refresh) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Refresh) MarshalToVT(dAtA []byte) (int, error)
- func (m *Refresh) MarshalVT() (dAtA []byte, err error)
- func (*Refresh) ProtoMessage()
- func (x *Refresh) ProtoReflect() protoreflect.Message
- func (x *Refresh) Reset()
- func (m *Refresh) SizeVT() (n int)
- func (x *Refresh) String() string
- func (v *Refresh) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Refresh) UnmarshalVT(dAtA []byte) error
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRequest) GetToken() string
- func (v RefreshRequest) MarshalEasyJSON(w *writer)
- func (m *RefreshRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RefreshRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *RefreshRequest) MarshalVT() (dAtA []byte, err error)
- func (*RefreshRequest) ProtoMessage()
- func (x *RefreshRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshRequest) Reset()
- func (m *RefreshRequest) SizeVT() (n int)
- func (x *RefreshRequest) String() string
- func (v *RefreshRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *RefreshRequest) UnmarshalVT(dAtA []byte) error
- type RefreshResult
- func (*RefreshResult) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshResult) GetClient() string
- func (x *RefreshResult) GetExpires() bool
- func (x *RefreshResult) GetTtl() uint32
- func (x *RefreshResult) GetVersion() string
- func (v RefreshResult) MarshalEasyJSON(w *writer)
- func (m *RefreshResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RefreshResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *RefreshResult) MarshalVT() (dAtA []byte, err error)
- func (*RefreshResult) ProtoMessage()
- func (x *RefreshResult) ProtoReflect() protoreflect.Message
- func (x *RefreshResult) Reset()
- func (m *RefreshResult) SizeVT() (n int)
- func (x *RefreshResult) String() string
- func (v *RefreshResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *RefreshResult) UnmarshalVT(dAtA []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)deprecated
- func (x *Reply) GetConnect() *ConnectResult
- func (x *Reply) GetError() *Error
- func (x *Reply) GetHistory() *HistoryResult
- func (x *Reply) GetId() uint32
- func (x *Reply) GetPing() *PingResult
- func (x *Reply) GetPresence() *PresenceResult
- func (x *Reply) GetPresenceStats() *PresenceStatsResult
- func (x *Reply) GetPublish() *PublishResult
- func (x *Reply) GetPush() *Push
- func (x *Reply) GetRefresh() *RefreshResult
- func (x *Reply) GetRpc() *RPCResult
- func (x *Reply) GetSubRefresh() *SubRefreshResult
- func (x *Reply) GetSubscribe() *SubscribeResult
- func (x *Reply) GetUnsubscribe() *UnsubscribeResult
- func (v Reply) MarshalEasyJSON(w *writer)
- func (m *Reply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Reply) MarshalToVT(dAtA []byte) (int, error)
- func (m *Reply) MarshalVT() (dAtA []byte, err error)
- func (*Reply) ProtoMessage()
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (x *Reply) Reset()
- func (m *Reply) SizeVT() (n int)
- func (x *Reply) String() string
- func (v *Reply) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Reply) UnmarshalVT(dAtA []byte) error
- type ReplyDecoder
- type ReplyEncoder
- type ReplyPoolCollection
- func (p *ReplyPoolCollection) AcquireConnectReply(result *ConnectResult) *Reply
- func (p *ReplyPoolCollection) AcquireHistoryReply(result *HistoryResult) *Reply
- func (p *ReplyPoolCollection) AcquirePresenceReply(result *PresenceResult) *Reply
- func (p *ReplyPoolCollection) AcquirePresenceStatsReply(result *PresenceStatsResult) *Reply
- func (p *ReplyPoolCollection) AcquirePublishReply(result *PublishResult) *Reply
- func (p *ReplyPoolCollection) AcquireRPCReply(result *RPCResult) *Reply
- func (p *ReplyPoolCollection) AcquireRefreshReply(result *RefreshResult) *Reply
- func (p *ReplyPoolCollection) AcquireSubRefreshReply(result *SubRefreshResult) *Reply
- func (p *ReplyPoolCollection) AcquireSubscribeReply(result *SubscribeResult) *Reply
- func (p *ReplyPoolCollection) AcquireUnsubscribeReply(result *UnsubscribeResult) *Reply
- func (p *ReplyPoolCollection) ReleaseConnectReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseHistoryReply(r *Reply)
- func (p *ReplyPoolCollection) ReleasePresenceReply(r *Reply)
- func (p *ReplyPoolCollection) ReleasePresenceStatsReply(r *Reply)
- func (p *ReplyPoolCollection) ReleasePublishReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseRPCReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseRefreshReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseSubRefreshReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseSubscribeReply(r *Reply)
- func (p *ReplyPoolCollection) ReleaseUnsubscribeReply(r *Reply)
- type ResultEncoder
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetData() []byte
- func (v SendRequest) MarshalEasyJSON(w *writer)
- func (m *SendRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SendRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SendRequest) MarshalVT() (dAtA []byte, err error)
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (m *SendRequest) SizeVT() (n int)
- func (x *SendRequest) String() string
- func (v *SendRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *SendRequest) UnmarshalVT(dAtA []byte) error
- type StreamCommandDecoder
- type StreamPosition
- func (*StreamPosition) Descriptor() ([]byte, []int)deprecated
- func (x *StreamPosition) GetEpoch() string
- func (x *StreamPosition) GetOffset() uint64
- func (v StreamPosition) MarshalEasyJSON(w *writer)
- func (m *StreamPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StreamPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *StreamPosition) MarshalVT() (dAtA []byte, err error)
- func (*StreamPosition) ProtoMessage()
- func (x *StreamPosition) ProtoReflect() protoreflect.Message
- func (x *StreamPosition) Reset()
- func (m *StreamPosition) SizeVT() (n int)
- func (x *StreamPosition) String() string
- func (v *StreamPosition) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *StreamPosition) UnmarshalVT(dAtA []byte) error
- type SubRefreshRequest
- func (*SubRefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubRefreshRequest) GetChannel() string
- func (x *SubRefreshRequest) GetToken() string
- func (v SubRefreshRequest) MarshalEasyJSON(w *writer)
- func (m *SubRefreshRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SubRefreshRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SubRefreshRequest) MarshalVT() (dAtA []byte, err error)
- func (*SubRefreshRequest) ProtoMessage()
- func (x *SubRefreshRequest) ProtoReflect() protoreflect.Message
- func (x *SubRefreshRequest) Reset()
- func (m *SubRefreshRequest) SizeVT() (n int)
- func (x *SubRefreshRequest) String() string
- func (v *SubRefreshRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *SubRefreshRequest) UnmarshalVT(dAtA []byte) error
- type SubRefreshResult
- func (*SubRefreshResult) Descriptor() ([]byte, []int)deprecated
- func (x *SubRefreshResult) GetExpires() bool
- func (x *SubRefreshResult) GetTtl() uint32
- func (v SubRefreshResult) MarshalEasyJSON(w *writer)
- func (m *SubRefreshResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SubRefreshResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *SubRefreshResult) MarshalVT() (dAtA []byte, err error)
- func (*SubRefreshResult) ProtoMessage()
- func (x *SubRefreshResult) ProtoReflect() protoreflect.Message
- func (x *SubRefreshResult) Reset()
- func (m *SubRefreshResult) SizeVT() (n int)
- func (x *SubRefreshResult) String() string
- func (v *SubRefreshResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *SubRefreshResult) UnmarshalVT(dAtA []byte) error
- type Subscribe
- func (*Subscribe) Descriptor() ([]byte, []int)deprecated
- func (x *Subscribe) GetData() []byte
- func (x *Subscribe) GetEpoch() string
- func (x *Subscribe) GetOffset() uint64
- func (x *Subscribe) GetPositioned() bool
- func (x *Subscribe) GetRecoverable() bool
- func (v Subscribe) MarshalEasyJSON(w *writer)
- func (m *Subscribe) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Subscribe) MarshalToVT(dAtA []byte) (int, error)
- func (m *Subscribe) MarshalVT() (dAtA []byte, err error)
- func (*Subscribe) ProtoMessage()
- func (x *Subscribe) ProtoReflect() protoreflect.Message
- func (x *Subscribe) Reset()
- func (m *Subscribe) SizeVT() (n int)
- func (x *Subscribe) String() string
- func (v *Subscribe) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Subscribe) UnmarshalVT(dAtA []byte) error
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeRequest) GetChannel() string
- func (x *SubscribeRequest) GetData() []byte
- func (x *SubscribeRequest) GetDelta() string
- func (x *SubscribeRequest) GetEpoch() string
- func (x *SubscribeRequest) GetFilter() string
- func (x *SubscribeRequest) GetJoinLeave() bool
- func (x *SubscribeRequest) GetOffset() uint64
- func (x *SubscribeRequest) GetPositioned() bool
- func (x *SubscribeRequest) GetRecover() bool
- func (x *SubscribeRequest) GetRecoverable() bool
- func (x *SubscribeRequest) GetToken() string
- func (v SubscribeRequest) MarshalEasyJSON(w *writer)
- func (m *SubscribeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SubscribeRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *SubscribeRequest) MarshalVT() (dAtA []byte, err error)
- func (*SubscribeRequest) ProtoMessage()
- func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeRequest) Reset()
- func (m *SubscribeRequest) SizeVT() (n int)
- func (x *SubscribeRequest) String() string
- func (v *SubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *SubscribeRequest) UnmarshalVT(dAtA []byte) error
- type SubscribeResult
- func (*SubscribeResult) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeResult) GetData() []byte
- func (x *SubscribeResult) GetDelta() bool
- func (x *SubscribeResult) GetEpoch() string
- func (x *SubscribeResult) GetExpires() bool
- func (x *SubscribeResult) GetOffset() uint64
- func (x *SubscribeResult) GetPositioned() bool
- func (x *SubscribeResult) GetPublications() []*Publication
- func (x *SubscribeResult) GetRecoverable() bool
- func (x *SubscribeResult) GetRecovered() bool
- func (x *SubscribeResult) GetTtl() uint32
- func (x *SubscribeResult) GetWasRecovering() bool
- func (v SubscribeResult) MarshalEasyJSON(w *writer)
- func (m *SubscribeResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SubscribeResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *SubscribeResult) MarshalVT() (dAtA []byte, err error)
- func (*SubscribeResult) ProtoMessage()
- func (x *SubscribeResult) ProtoReflect() protoreflect.Message
- func (x *SubscribeResult) Reset()
- func (m *SubscribeResult) SizeVT() (n int)
- func (x *SubscribeResult) String() string
- func (v *SubscribeResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *SubscribeResult) UnmarshalVT(dAtA []byte) error
- type Type
- type Unsubscribe
- func (*Unsubscribe) Descriptor() ([]byte, []int)deprecated
- func (x *Unsubscribe) GetCode() uint32
- func (x *Unsubscribe) GetReason() string
- func (v Unsubscribe) MarshalEasyJSON(w *writer)
- func (m *Unsubscribe) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Unsubscribe) MarshalToVT(dAtA []byte) (int, error)
- func (m *Unsubscribe) MarshalVT() (dAtA []byte, err error)
- func (*Unsubscribe) ProtoMessage()
- func (x *Unsubscribe) ProtoReflect() protoreflect.Message
- func (x *Unsubscribe) Reset()
- func (m *Unsubscribe) SizeVT() (n int)
- func (x *Unsubscribe) String() string
- func (v *Unsubscribe) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *Unsubscribe) UnmarshalVT(dAtA []byte) error
- type UnsubscribeRequest
- func (*UnsubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnsubscribeRequest) GetChannel() string
- func (v UnsubscribeRequest) MarshalEasyJSON(w *writer)
- func (m *UnsubscribeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UnsubscribeRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UnsubscribeRequest) MarshalVT() (dAtA []byte, err error)
- func (*UnsubscribeRequest) ProtoMessage()
- func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *UnsubscribeRequest) Reset()
- func (m *UnsubscribeRequest) SizeVT() (n int)
- func (x *UnsubscribeRequest) String() string
- func (v *UnsubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *UnsubscribeRequest) UnmarshalVT(dAtA []byte) error
- type UnsubscribeResult
- func (*UnsubscribeResult) Descriptor() ([]byte, []int)deprecated
- func (v UnsubscribeResult) MarshalEasyJSON(w *writer)
- func (m *UnsubscribeResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UnsubscribeResult) MarshalToVT(dAtA []byte) (int, error)
- func (m *UnsubscribeResult) MarshalVT() (dAtA []byte, err error)
- func (*UnsubscribeResult) ProtoMessage()
- func (x *UnsubscribeResult) ProtoReflect() protoreflect.Message
- func (x *UnsubscribeResult) Reset()
- func (m *UnsubscribeResult) SizeVT() (n int)
- func (x *UnsubscribeResult) String() string
- func (v *UnsubscribeResult) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (m *UnsubscribeResult) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( DefaultJsonPushEncoder = NewJSONPushEncoder() DefaultProtobufPushEncoder = NewProtobufPushEncoder() )
var ( DefaultJsonReplyEncoder = NewJSONReplyEncoder() DefaultProtobufReplyEncoder = NewProtobufReplyEncoder() )
var ErrMessageTooLarge = errors.New("message size exceeds the limit")
ErrMessageTooLarge for when the message exceeds the limit.
var File_client_proto protoreflect.FileDescriptor
var ReplyPool = &ReplyPoolCollection{}
Functions ¶
func PutCommandDecoder ¶
func PutCommandDecoder(protoType Type, e CommandDecoder)
PutCommandDecoder ...
func PutStreamCommandDecoder ¶
func PutStreamCommandDecoder(protoType Type, e StreamCommandDecoder)
Types ¶
type ByteBuffer ¶
type ByteBuffer struct {
// B is the underlying byte slice.
B []byte
}
ByteBuffer implements a simple byte buffer.
type ClientInfo ¶
type ClientInfo struct {
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user"`
Client string `protobuf:"bytes,2,opt,name=client,proto3" json:"client"`
ConnInfo Raw `protobuf:"bytes,3,opt,name=conn_info,json=connInfo,proto3" json:"conn_info,omitempty"`
ChanInfo Raw `protobuf:"bytes,4,opt,name=chan_info,json=chanInfo,proto3" json:"chan_info,omitempty"`
// contains filtered or unexported fields
}
func (*ClientInfo) Descriptor
deprecated
func (*ClientInfo) Descriptor() ([]byte, []int)
Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.
func (*ClientInfo) GetChanInfo ¶
func (x *ClientInfo) GetChanInfo() []byte
func (*ClientInfo) GetClient ¶
func (x *ClientInfo) GetClient() string
func (*ClientInfo) GetConnInfo ¶
func (x *ClientInfo) GetConnInfo() []byte
func (*ClientInfo) GetUser ¶
func (x *ClientInfo) GetUser() string
func (ClientInfo) MarshalEasyJSON ¶
func (v ClientInfo) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*ClientInfo) MarshalToSizedBufferVT ¶
func (m *ClientInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ClientInfo) MarshalToVT ¶
func (m *ClientInfo) MarshalToVT(dAtA []byte) (int, error)
func (*ClientInfo) MarshalVT ¶
func (m *ClientInfo) MarshalVT() (dAtA []byte, err error)
func (*ClientInfo) ProtoMessage ¶
func (*ClientInfo) ProtoMessage()
func (*ClientInfo) ProtoReflect ¶
func (x *ClientInfo) ProtoReflect() protoreflect.Message
func (*ClientInfo) Reset ¶
func (x *ClientInfo) Reset()
func (*ClientInfo) SizeVT ¶
func (m *ClientInfo) SizeVT() (n int)
func (*ClientInfo) String ¶
func (x *ClientInfo) String() string
func (*ClientInfo) UnmarshalEasyJSON ¶
func (v *ClientInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClientInfo) UnmarshalVT ¶
func (m *ClientInfo) UnmarshalVT(dAtA []byte) error
type Command ¶
type Command struct {
// Id of command to let client match replies to commands.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// ProtocolVersion2 client can send one of the following requests. Server will
// only take the first non-null request out of these and may return an error if
// client passed more than one request. We are not using oneof here due to JSON
// interoperability concerns.
Connect *ConnectRequest `protobuf:"bytes,4,opt,name=connect,proto3" json:"connect,omitempty"`
Subscribe *SubscribeRequest `protobuf:"bytes,5,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
Unsubscribe *UnsubscribeRequest `protobuf:"bytes,6,opt,name=unsubscribe,proto3" json:"unsubscribe,omitempty"`
Publish *PublishRequest `protobuf:"bytes,7,opt,name=publish,proto3" json:"publish,omitempty"`
Presence *PresenceRequest `protobuf:"bytes,8,opt,name=presence,proto3" json:"presence,omitempty"`
PresenceStats *PresenceStatsRequest `protobuf:"bytes,9,opt,name=presence_stats,json=presenceStats,proto3" json:"presence_stats,omitempty"`
History *HistoryRequest `protobuf:"bytes,10,opt,name=history,proto3" json:"history,omitempty"`
Ping *PingRequest `protobuf:"bytes,11,opt,name=ping,proto3" json:"ping,omitempty"`
Send *SendRequest `protobuf:"bytes,12,opt,name=send,proto3" json:"send,omitempty"`
Rpc *RPCRequest `protobuf:"bytes,13,opt,name=rpc,proto3" json:"rpc,omitempty"`
Refresh *RefreshRequest `protobuf:"bytes,14,opt,name=refresh,proto3" json:"refresh,omitempty"`
SubRefresh *SubRefreshRequest `protobuf:"bytes,15,opt,name=sub_refresh,json=subRefresh,proto3" json:"sub_refresh,omitempty"`
// contains filtered or unexported fields
}
Command sent from a client to a server. ProtocolVersion2 uses id and one of the possible request messages.
func (*Command) Descriptor
deprecated
func (*Command) GetConnect ¶
func (x *Command) GetConnect() *ConnectRequest
func (*Command) GetHistory ¶
func (x *Command) GetHistory() *HistoryRequest
func (*Command) GetPing ¶
func (x *Command) GetPing() *PingRequest
func (*Command) GetPresence ¶
func (x *Command) GetPresence() *PresenceRequest
func (*Command) GetPresenceStats ¶
func (x *Command) GetPresenceStats() *PresenceStatsRequest
func (*Command) GetPublish ¶
func (x *Command) GetPublish() *PublishRequest
func (*Command) GetRefresh ¶
func (x *Command) GetRefresh() *RefreshRequest
func (*Command) GetRpc ¶
func (x *Command) GetRpc() *RPCRequest
func (*Command) GetSend ¶
func (x *Command) GetSend() *SendRequest
func (*Command) GetSubRefresh ¶
func (x *Command) GetSubRefresh() *SubRefreshRequest
func (*Command) GetSubscribe ¶
func (x *Command) GetSubscribe() *SubscribeRequest
func (*Command) GetUnsubscribe ¶
func (x *Command) GetUnsubscribe() *UnsubscribeRequest
func (Command) MarshalEasyJSON ¶
func (v Command) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Command) MarshalToSizedBufferVT ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
func (*Command) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Command) UnmarshalVT ¶
type CommandDecoder ¶
CommandDecoder ...
func GetCommandDecoder ¶
func GetCommandDecoder(protoType Type, data []byte) CommandDecoder
GetCommandDecoder ...
type CommandEncoder ¶
CommandEncoder ...
type Connect ¶
type Connect struct {
Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Data Raw `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
Subs map[string]*SubscribeResult `` /* 135-byte string literal not displayed */
Expires bool `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"`
Ping uint32 `protobuf:"varint,7,opt,name=ping,proto3" json:"ping,omitempty"`
Pong bool `protobuf:"varint,8,opt,name=pong,proto3" json:"pong,omitempty"`
Session string `protobuf:"bytes,9,opt,name=session,proto3" json:"session,omitempty"`
Node string `protobuf:"bytes,10,opt,name=node,proto3" json:"node,omitempty"`
Time int64 `protobuf:"varint,11,opt,name=time,proto3" json:"time,omitempty"` // Server time as Unix timestamp in milliseconds (not sent by default).
// contains filtered or unexported fields
}
func (*Connect) Descriptor
deprecated
func (*Connect) GetExpires ¶
func (*Connect) GetSession ¶
func (*Connect) GetSubs ¶
func (x *Connect) GetSubs() map[string]*SubscribeResult
func (*Connect) GetVersion ¶
func (Connect) MarshalEasyJSON ¶
func (v Connect) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Connect) MarshalToSizedBufferVT ¶
func (*Connect) ProtoMessage ¶
func (*Connect) ProtoMessage()
func (*Connect) ProtoReflect ¶
func (x *Connect) ProtoReflect() protoreflect.Message
func (*Connect) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Connect) UnmarshalVT ¶
type ConnectRequest ¶
type ConnectRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Data Raw `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Subs map[string]*SubscribeRequest `` /* 135-byte string literal not displayed */
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
Headers map[string]string `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ConnectRequest) Descriptor
deprecated
func (*ConnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.
func (*ConnectRequest) GetData ¶
func (x *ConnectRequest) GetData() []byte
func (*ConnectRequest) GetHeaders ¶
func (x *ConnectRequest) GetHeaders() map[string]string
func (*ConnectRequest) GetName ¶
func (x *ConnectRequest) GetName() string
func (*ConnectRequest) GetSubs ¶
func (x *ConnectRequest) GetSubs() map[string]*SubscribeRequest
func (*ConnectRequest) GetToken ¶
func (x *ConnectRequest) GetToken() string
func (*ConnectRequest) GetVersion ¶
func (x *ConnectRequest) GetVersion() string
func (ConnectRequest) MarshalEasyJSON ¶
func (v ConnectRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*ConnectRequest) MarshalToSizedBufferVT ¶
func (m *ConnectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ConnectRequest) MarshalToVT ¶
func (m *ConnectRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ConnectRequest) MarshalVT ¶
func (m *ConnectRequest) MarshalVT() (dAtA []byte, err error)
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) ProtoReflect ¶
func (x *ConnectRequest) ProtoReflect() protoreflect.Message
func (*ConnectRequest) Reset ¶
func (x *ConnectRequest) Reset()
func (*ConnectRequest) SizeVT ¶
func (m *ConnectRequest) SizeVT() (n int)
func (*ConnectRequest) String ¶
func (x *ConnectRequest) String() string
func (*ConnectRequest) UnmarshalEasyJSON ¶
func (v *ConnectRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConnectRequest) UnmarshalVT ¶
func (m *ConnectRequest) UnmarshalVT(dAtA []byte) error
type ConnectResult ¶
type ConnectResult struct {
Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Expires bool `protobuf:"varint,3,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
Data Raw `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
Subs map[string]*SubscribeResult `` /* 135-byte string literal not displayed */
Ping uint32 `protobuf:"varint,7,opt,name=ping,proto3" json:"ping,omitempty"`
Pong bool `protobuf:"varint,8,opt,name=pong,proto3" json:"pong,omitempty"`
Session string `protobuf:"bytes,9,opt,name=session,proto3" json:"session,omitempty"`
Node string `protobuf:"bytes,10,opt,name=node,proto3" json:"node,omitempty"`
Time int64 `protobuf:"varint,11,opt,name=time,proto3" json:"time,omitempty"` // Server time as Unix timestamp in milliseconds (not sent by default).
// contains filtered or unexported fields
}
func (*ConnectResult) Descriptor
deprecated
func (*ConnectResult) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResult.ProtoReflect.Descriptor instead.
func (*ConnectResult) GetClient ¶
func (x *ConnectResult) GetClient() string
func (*ConnectResult) GetData ¶
func (x *ConnectResult) GetData() []byte
func (*ConnectResult) GetExpires ¶
func (x *ConnectResult) GetExpires() bool
func (*ConnectResult) GetNode ¶
func (x *ConnectResult) GetNode() string
func (*ConnectResult) GetPing ¶
func (x *ConnectResult) GetPing() uint32
func (*ConnectResult) GetPong ¶
func (x *ConnectResult) GetPong() bool
func (*ConnectResult) GetSession ¶
func (x *ConnectResult) GetSession() string
func (*ConnectResult) GetSubs ¶
func (x *ConnectResult) GetSubs() map[string]*SubscribeResult
func (*ConnectResult) GetTime ¶
func (x *ConnectResult) GetTime() int64
func (*ConnectResult) GetTtl ¶
func (x *ConnectResult) GetTtl() uint32
func (*ConnectResult) GetVersion ¶
func (x *ConnectResult) GetVersion() string
func (ConnectResult) MarshalEasyJSON ¶
func (v ConnectResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*ConnectResult) MarshalToSizedBufferVT ¶
func (m *ConnectResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ConnectResult) MarshalToVT ¶
func (m *ConnectResult) MarshalToVT(dAtA []byte) (int, error)
func (*ConnectResult) MarshalVT ¶
func (m *ConnectResult) MarshalVT() (dAtA []byte, err error)
func (*ConnectResult) ProtoMessage ¶
func (*ConnectResult) ProtoMessage()
func (*ConnectResult) ProtoReflect ¶
func (x *ConnectResult) ProtoReflect() protoreflect.Message
func (*ConnectResult) Reset ¶
func (x *ConnectResult) Reset()
func (*ConnectResult) SizeVT ¶
func (m *ConnectResult) SizeVT() (n int)
func (*ConnectResult) String ¶
func (x *ConnectResult) String() string
func (*ConnectResult) UnmarshalEasyJSON ¶
func (v *ConnectResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConnectResult) UnmarshalVT ¶
func (m *ConnectResult) UnmarshalVT(dAtA []byte) error
type DataEncoder ¶
DataEncoder ...
type Disconnect ¶
type Disconnect struct {
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
Reconnect bool `protobuf:"varint,3,opt,name=reconnect,proto3" json:"reconnect,omitempty"`
// contains filtered or unexported fields
}
func (*Disconnect) Descriptor
deprecated
func (*Disconnect) Descriptor() ([]byte, []int)
Deprecated: Use Disconnect.ProtoReflect.Descriptor instead.
func (*Disconnect) GetCode ¶
func (x *Disconnect) GetCode() uint32
func (*Disconnect) GetReason ¶
func (x *Disconnect) GetReason() string
func (*Disconnect) GetReconnect ¶
func (x *Disconnect) GetReconnect() bool
func (Disconnect) MarshalEasyJSON ¶
func (v Disconnect) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Disconnect) MarshalToSizedBufferVT ¶
func (m *Disconnect) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Disconnect) MarshalToVT ¶
func (m *Disconnect) MarshalToVT(dAtA []byte) (int, error)
func (*Disconnect) MarshalVT ¶
func (m *Disconnect) MarshalVT() (dAtA []byte, err error)
func (*Disconnect) ProtoMessage ¶
func (*Disconnect) ProtoMessage()
func (*Disconnect) ProtoReflect ¶
func (x *Disconnect) ProtoReflect() protoreflect.Message
func (*Disconnect) Reset ¶
func (x *Disconnect) Reset()
func (*Disconnect) SizeVT ¶
func (m *Disconnect) SizeVT() (n int)
func (*Disconnect) String ¶
func (x *Disconnect) String() string
func (*Disconnect) UnmarshalEasyJSON ¶
func (v *Disconnect) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Disconnect) UnmarshalVT ¶
func (m *Disconnect) UnmarshalVT(dAtA []byte) error
type EmulationRequest ¶
type EmulationRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Session string `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
Data Raw `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*EmulationRequest) Descriptor
deprecated
func (*EmulationRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmulationRequest.ProtoReflect.Descriptor instead.
func (*EmulationRequest) GetData ¶
func (x *EmulationRequest) GetData() []byte
func (*EmulationRequest) GetNode ¶
func (x *EmulationRequest) GetNode() string
func (*EmulationRequest) GetSession ¶
func (x *EmulationRequest) GetSession() string
func (EmulationRequest) MarshalEasyJSON ¶
func (v EmulationRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*EmulationRequest) MarshalToSizedBufferVT ¶
func (m *EmulationRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*EmulationRequest) MarshalToVT ¶
func (m *EmulationRequest) MarshalToVT(dAtA []byte) (int, error)
func (*EmulationRequest) MarshalVT ¶
func (m *EmulationRequest) MarshalVT() (dAtA []byte, err error)
func (*EmulationRequest) ProtoMessage ¶
func (*EmulationRequest) ProtoMessage()
func (*EmulationRequest) ProtoReflect ¶
func (x *EmulationRequest) ProtoReflect() protoreflect.Message
func (*EmulationRequest) Reset ¶
func (x *EmulationRequest) Reset()
func (*EmulationRequest) SizeVT ¶
func (m *EmulationRequest) SizeVT() (n int)
func (*EmulationRequest) String ¶
func (x *EmulationRequest) String() string
func (*EmulationRequest) UnmarshalEasyJSON ¶
func (v *EmulationRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EmulationRequest) UnmarshalVT ¶
func (m *EmulationRequest) UnmarshalVT(dAtA []byte) error
type Error ¶
type Error struct {
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Temporary bool `protobuf:"varint,3,opt,name=temporary,proto3" json:"temporary,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) GetTemporary ¶
func (Error) MarshalEasyJSON ¶
func (v Error) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Error) MarshalToSizedBufferVT ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalVT ¶
type FrameType ¶
type FrameType uint8
const ( FrameTypeServerPing FrameType = iota + 1 FrameTypeClientPong FrameTypePushConnect FrameTypePushSubscribe FrameTypePushPublication FrameTypePushJoin FrameTypePushLeave FrameTypePushUnsubscribe FrameTypePushMessage FrameTypePushRefresh FrameTypePushDisconnect FrameTypeConnect FrameTypeSubscribe FrameTypePublish FrameTypeUnsubscribe FrameTypeRPC FrameTypePresence FrameTypePresenceStats FrameTypeHistory FrameTypeRefresh FrameTypeSubRefresh FrameTypeSend )
type HistoryRequest ¶
type HistoryRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
Limit int32 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`
Since *StreamPosition `protobuf:"bytes,8,opt,name=since,proto3" json:"since,omitempty"`
Reverse bool `protobuf:"varint,9,opt,name=reverse,proto3" json:"reverse,omitempty"`
// contains filtered or unexported fields
}
func (*HistoryRequest) Descriptor
deprecated
func (*HistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use HistoryRequest.ProtoReflect.Descriptor instead.
func (*HistoryRequest) GetChannel ¶
func (x *HistoryRequest) GetChannel() string
func (*HistoryRequest) GetLimit ¶
func (x *HistoryRequest) GetLimit() int32
func (*HistoryRequest) GetReverse ¶
func (x *HistoryRequest) GetReverse() bool
func (*HistoryRequest) GetSince ¶
func (x *HistoryRequest) GetSince() *StreamPosition
func (HistoryRequest) MarshalEasyJSON ¶
func (v HistoryRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*HistoryRequest) MarshalToSizedBufferVT ¶
func (m *HistoryRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryRequest) MarshalToVT ¶
func (m *HistoryRequest) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryRequest) MarshalVT ¶
func (m *HistoryRequest) MarshalVT() (dAtA []byte, err error)
func (*HistoryRequest) ProtoMessage ¶
func (*HistoryRequest) ProtoMessage()
func (*HistoryRequest) ProtoReflect ¶
func (x *HistoryRequest) ProtoReflect() protoreflect.Message
func (*HistoryRequest) Reset ¶
func (x *HistoryRequest) Reset()
func (*HistoryRequest) SizeVT ¶
func (m *HistoryRequest) SizeVT() (n int)
func (*HistoryRequest) String ¶
func (x *HistoryRequest) String() string
func (*HistoryRequest) UnmarshalEasyJSON ¶
func (v *HistoryRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HistoryRequest) UnmarshalVT ¶
func (m *HistoryRequest) UnmarshalVT(dAtA []byte) error
type HistoryResult ¶
type HistoryResult struct {
Publications []*Publication `protobuf:"bytes,1,rep,name=publications,proto3" json:"publications"`
Epoch string `protobuf:"bytes,2,opt,name=epoch,proto3" json:"epoch"`
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset"`
// contains filtered or unexported fields
}
func (*HistoryResult) Descriptor
deprecated
func (*HistoryResult) Descriptor() ([]byte, []int)
Deprecated: Use HistoryResult.ProtoReflect.Descriptor instead.
func (*HistoryResult) GetEpoch ¶
func (x *HistoryResult) GetEpoch() string
func (*HistoryResult) GetOffset ¶
func (x *HistoryResult) GetOffset() uint64
func (*HistoryResult) GetPublications ¶
func (x *HistoryResult) GetPublications() []*Publication
func (HistoryResult) MarshalEasyJSON ¶
func (v HistoryResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*HistoryResult) MarshalToSizedBufferVT ¶
func (m *HistoryResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HistoryResult) MarshalToVT ¶
func (m *HistoryResult) MarshalToVT(dAtA []byte) (int, error)
func (*HistoryResult) MarshalVT ¶
func (m *HistoryResult) MarshalVT() (dAtA []byte, err error)
func (*HistoryResult) ProtoMessage ¶
func (*HistoryResult) ProtoMessage()
func (*HistoryResult) ProtoReflect ¶
func (x *HistoryResult) ProtoReflect() protoreflect.Message
func (*HistoryResult) Reset ¶
func (x *HistoryResult) Reset()
func (*HistoryResult) SizeVT ¶
func (m *HistoryResult) SizeVT() (n int)
func (*HistoryResult) String ¶
func (x *HistoryResult) String() string
func (*HistoryResult) UnmarshalEasyJSON ¶
func (v *HistoryResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HistoryResult) UnmarshalVT ¶
func (m *HistoryResult) UnmarshalVT(dAtA []byte) error
type JSONCommandDecoder ¶
type JSONCommandDecoder struct {
// contains filtered or unexported fields
}
JSONCommandDecoder ...
func NewJSONCommandDecoder ¶
func NewJSONCommandDecoder(data []byte) *JSONCommandDecoder
NewJSONCommandDecoder ...
func (*JSONCommandDecoder) Decode ¶
func (d *JSONCommandDecoder) Decode() (*Command, error)
Decode ...
type JSONCommandEncoder ¶
type JSONCommandEncoder struct {
}
JSONCommandEncoder ...
func NewJSONCommandEncoder ¶
func NewJSONCommandEncoder() *JSONCommandEncoder
NewJSONCommandEncoder ...
type JSONDataEncoder ¶
type JSONDataEncoder struct {
// contains filtered or unexported fields
}
JSONDataEncoder ...
type JSONPushEncoder ¶
type JSONPushEncoder struct {
}
JSONPushEncoder ...
func (*JSONPushEncoder) Encode ¶
func (e *JSONPushEncoder) Encode(message *Push) ([]byte, error)
Encode Push to bytes.
func (*JSONPushEncoder) EncodeConnect ¶
func (e *JSONPushEncoder) EncodeConnect(message *Connect, reuse ...[]byte) ([]byte, error)
EncodeConnect to bytes.
func (*JSONPushEncoder) EncodeDisconnect ¶
func (e *JSONPushEncoder) EncodeDisconnect(message *Disconnect, reuse ...[]byte) ([]byte, error)
EncodeDisconnect to bytes.
func (*JSONPushEncoder) EncodeJoin ¶
func (e *JSONPushEncoder) EncodeJoin(message *Join, reuse ...[]byte) ([]byte, error)
EncodeJoin to bytes.
func (*JSONPushEncoder) EncodeLeave ¶
func (e *JSONPushEncoder) EncodeLeave(message *Leave, reuse ...[]byte) ([]byte, error)
EncodeLeave to bytes.
func (*JSONPushEncoder) EncodeMessage ¶
func (e *JSONPushEncoder) EncodeMessage(message *Message, reuse ...[]byte) ([]byte, error)
EncodeMessage to bytes.
func (*JSONPushEncoder) EncodePublication ¶
func (e *JSONPushEncoder) EncodePublication(message *Publication, reuse ...[]byte) ([]byte, error)
EncodePublication to bytes.
func (*JSONPushEncoder) EncodeRefresh ¶
func (e *JSONPushEncoder) EncodeRefresh(message *Refresh, reuse ...[]byte) ([]byte, error)
EncodeRefresh to bytes.
func (*JSONPushEncoder) EncodeSubscribe ¶
func (e *JSONPushEncoder) EncodeSubscribe(message *Subscribe, reuse ...[]byte) ([]byte, error)
EncodeSubscribe to bytes.
func (*JSONPushEncoder) EncodeUnsubscribe ¶
func (e *JSONPushEncoder) EncodeUnsubscribe(message *Unsubscribe, reuse ...[]byte) ([]byte, error)
EncodeUnsubscribe to bytes.
type JSONReplyDecoder ¶
type JSONReplyDecoder struct {
// contains filtered or unexported fields
}
JSONReplyDecoder ...
func NewJSONReplyDecoder ¶
func NewJSONReplyDecoder(data []byte) *JSONReplyDecoder
NewJSONReplyDecoder ...
type JSONResultEncoder ¶
type JSONResultEncoder struct{}
JSONResultEncoder ...
func (*JSONResultEncoder) EncodeConnectResult ¶
func (e *JSONResultEncoder) EncodeConnectResult(res *ConnectResult) ([]byte, error)
EncodeConnectResult ...
func (*JSONResultEncoder) EncodeHistoryResult ¶
func (e *JSONResultEncoder) EncodeHistoryResult(res *HistoryResult) ([]byte, error)
EncodeHistoryResult ...
func (*JSONResultEncoder) EncodePingResult ¶
func (e *JSONResultEncoder) EncodePingResult(res *PingResult) ([]byte, error)
EncodePingResult ...
func (*JSONResultEncoder) EncodePresenceResult ¶
func (e *JSONResultEncoder) EncodePresenceResult(res *PresenceResult) ([]byte, error)
EncodePresenceResult ...
func (*JSONResultEncoder) EncodePresenceStatsResult ¶
func (e *JSONResultEncoder) EncodePresenceStatsResult(res *PresenceStatsResult) ([]byte, error)
EncodePresenceStatsResult ...
func (*JSONResultEncoder) EncodePublishResult ¶
func (e *JSONResultEncoder) EncodePublishResult(res *PublishResult) ([]byte, error)
EncodePublishResult ...
func (*JSONResultEncoder) EncodeRPCResult ¶
func (e *JSONResultEncoder) EncodeRPCResult(res *RPCResult) ([]byte, error)
EncodeRPCResult ...
func (*JSONResultEncoder) EncodeRefreshResult ¶
func (e *JSONResultEncoder) EncodeRefreshResult(res *RefreshResult) ([]byte, error)
EncodeRefreshResult ...
func (*JSONResultEncoder) EncodeSubRefreshResult ¶
func (e *JSONResultEncoder) EncodeSubRefreshResult(res *SubRefreshResult) ([]byte, error)
EncodeSubRefreshResult ...
func (*JSONResultEncoder) EncodeSubscribeResult ¶
func (e *JSONResultEncoder) EncodeSubscribeResult(res *SubscribeResult) ([]byte, error)
EncodeSubscribeResult ...
func (*JSONResultEncoder) EncodeUnsubscribeResult ¶
func (e *JSONResultEncoder) EncodeUnsubscribeResult(res *UnsubscribeResult) ([]byte, error)
EncodeUnsubscribeResult ...
type JSONStreamCommandDecoder ¶
type JSONStreamCommandDecoder struct {
// contains filtered or unexported fields
}
func NewJSONStreamCommandDecoder ¶
func NewJSONStreamCommandDecoder(reader io.Reader, messageSizeLimit int64) *JSONStreamCommandDecoder
type Join ¶
type Join struct {
Info *ClientInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
// contains filtered or unexported fields
}
func (*Join) Descriptor
deprecated
func (*Join) GetInfo ¶
func (x *Join) GetInfo() *ClientInfo
func (Join) MarshalEasyJSON ¶
func (v Join) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Join) MarshalToSizedBufferVT ¶
func (*Join) ProtoMessage ¶
func (*Join) ProtoMessage()
func (*Join) ProtoReflect ¶
func (x *Join) ProtoReflect() protoreflect.Message
func (*Join) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Join) UnmarshalVT ¶
type Leave ¶
type Leave struct {
Info *ClientInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
// contains filtered or unexported fields
}
func (*Leave) Descriptor
deprecated
func (*Leave) GetInfo ¶
func (x *Leave) GetInfo() *ClientInfo
func (Leave) MarshalEasyJSON ¶
func (v Leave) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Leave) MarshalToSizedBufferVT ¶
func (*Leave) ProtoMessage ¶
func (*Leave) ProtoMessage()
func (*Leave) ProtoReflect ¶
func (x *Leave) ProtoReflect() protoreflect.Message
func (*Leave) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Leave) UnmarshalVT ¶
type Message ¶
type Message struct {
Data Raw `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
func (Message) MarshalEasyJSON ¶
func (v Message) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Message) MarshalToSizedBufferVT ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalVT ¶
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (PingRequest) MarshalEasyJSON ¶
func (v PingRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PingRequest) MarshalToSizedBufferVT ¶
func (m *PingRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PingRequest) MarshalToVT ¶
func (m *PingRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PingRequest) MarshalVT ¶
func (m *PingRequest) MarshalVT() (dAtA []byte, err error)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) SizeVT ¶
func (m *PingRequest) SizeVT() (n int)
func (*PingRequest) String ¶
func (x *PingRequest) String() string
func (*PingRequest) UnmarshalEasyJSON ¶
func (v *PingRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PingRequest) UnmarshalVT ¶
func (m *PingRequest) UnmarshalVT(dAtA []byte) error
type PingResult ¶
type PingResult struct {
// contains filtered or unexported fields
}
func (*PingResult) Descriptor
deprecated
func (*PingResult) Descriptor() ([]byte, []int)
Deprecated: Use PingResult.ProtoReflect.Descriptor instead.
func (PingResult) MarshalEasyJSON ¶
func (v PingResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PingResult) MarshalToSizedBufferVT ¶
func (m *PingResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PingResult) MarshalToVT ¶
func (m *PingResult) MarshalToVT(dAtA []byte) (int, error)
func (*PingResult) MarshalVT ¶
func (m *PingResult) MarshalVT() (dAtA []byte, err error)
func (*PingResult) ProtoMessage ¶
func (*PingResult) ProtoMessage()
func (*PingResult) ProtoReflect ¶
func (x *PingResult) ProtoReflect() protoreflect.Message
func (*PingResult) Reset ¶
func (x *PingResult) Reset()
func (*PingResult) SizeVT ¶
func (m *PingResult) SizeVT() (n int)
func (*PingResult) String ¶
func (x *PingResult) String() string
func (*PingResult) UnmarshalEasyJSON ¶
func (v *PingResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PingResult) UnmarshalVT ¶
func (m *PingResult) UnmarshalVT(dAtA []byte) error
type PresenceRequest ¶
type PresenceRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
// contains filtered or unexported fields
}
func (*PresenceRequest) Descriptor
deprecated
func (*PresenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use PresenceRequest.ProtoReflect.Descriptor instead.
func (*PresenceRequest) GetChannel ¶
func (x *PresenceRequest) GetChannel() string
func (PresenceRequest) MarshalEasyJSON ¶
func (v PresenceRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PresenceRequest) MarshalToSizedBufferVT ¶
func (m *PresenceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PresenceRequest) MarshalToVT ¶
func (m *PresenceRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PresenceRequest) MarshalVT ¶
func (m *PresenceRequest) MarshalVT() (dAtA []byte, err error)
func (*PresenceRequest) ProtoMessage ¶
func (*PresenceRequest) ProtoMessage()
func (*PresenceRequest) ProtoReflect ¶
func (x *PresenceRequest) ProtoReflect() protoreflect.Message
func (*PresenceRequest) Reset ¶
func (x *PresenceRequest) Reset()
func (*PresenceRequest) SizeVT ¶
func (m *PresenceRequest) SizeVT() (n int)
func (*PresenceRequest) String ¶
func (x *PresenceRequest) String() string
func (*PresenceRequest) UnmarshalEasyJSON ¶
func (v *PresenceRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PresenceRequest) UnmarshalVT ¶
func (m *PresenceRequest) UnmarshalVT(dAtA []byte) error
type PresenceResult ¶
type PresenceResult struct {
Presence map[string]*ClientInfo `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PresenceResult) Descriptor
deprecated
func (*PresenceResult) Descriptor() ([]byte, []int)
Deprecated: Use PresenceResult.ProtoReflect.Descriptor instead.
func (*PresenceResult) GetPresence ¶
func (x *PresenceResult) GetPresence() map[string]*ClientInfo
func (PresenceResult) MarshalEasyJSON ¶
func (v PresenceResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PresenceResult) MarshalToSizedBufferVT ¶
func (m *PresenceResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PresenceResult) MarshalToVT ¶
func (m *PresenceResult) MarshalToVT(dAtA []byte) (int, error)
func (*PresenceResult) MarshalVT ¶
func (m *PresenceResult) MarshalVT() (dAtA []byte, err error)
func (*PresenceResult) ProtoMessage ¶
func (*PresenceResult) ProtoMessage()
func (*PresenceResult) ProtoReflect ¶
func (x *PresenceResult) ProtoReflect() protoreflect.Message
func (*PresenceResult) Reset ¶
func (x *PresenceResult) Reset()
func (*PresenceResult) SizeVT ¶
func (m *PresenceResult) SizeVT() (n int)
func (*PresenceResult) String ¶
func (x *PresenceResult) String() string
func (*PresenceResult) UnmarshalEasyJSON ¶
func (v *PresenceResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PresenceResult) UnmarshalVT ¶
func (m *PresenceResult) UnmarshalVT(dAtA []byte) error
type PresenceStatsRequest ¶
type PresenceStatsRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
// contains filtered or unexported fields
}
func (*PresenceStatsRequest) Descriptor
deprecated
func (*PresenceStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PresenceStatsRequest.ProtoReflect.Descriptor instead.
func (*PresenceStatsRequest) GetChannel ¶
func (x *PresenceStatsRequest) GetChannel() string
func (PresenceStatsRequest) MarshalEasyJSON ¶
func (v PresenceStatsRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PresenceStatsRequest) MarshalToSizedBufferVT ¶
func (m *PresenceStatsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PresenceStatsRequest) MarshalToVT ¶
func (m *PresenceStatsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PresenceStatsRequest) MarshalVT ¶
func (m *PresenceStatsRequest) MarshalVT() (dAtA []byte, err error)
func (*PresenceStatsRequest) ProtoMessage ¶
func (*PresenceStatsRequest) ProtoMessage()
func (*PresenceStatsRequest) ProtoReflect ¶
func (x *PresenceStatsRequest) ProtoReflect() protoreflect.Message
func (*PresenceStatsRequest) Reset ¶
func (x *PresenceStatsRequest) Reset()
func (*PresenceStatsRequest) SizeVT ¶
func (m *PresenceStatsRequest) SizeVT() (n int)
func (*PresenceStatsRequest) String ¶
func (x *PresenceStatsRequest) String() string
func (*PresenceStatsRequest) UnmarshalEasyJSON ¶
func (v *PresenceStatsRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PresenceStatsRequest) UnmarshalVT ¶
func (m *PresenceStatsRequest) UnmarshalVT(dAtA []byte) error
type PresenceStatsResult ¶
type PresenceStatsResult struct {
NumClients uint32 `protobuf:"varint,1,opt,name=num_clients,json=numClients,proto3" json:"num_clients"`
NumUsers uint32 `protobuf:"varint,2,opt,name=num_users,json=numUsers,proto3" json:"num_users"`
// contains filtered or unexported fields
}
func (*PresenceStatsResult) Descriptor
deprecated
func (*PresenceStatsResult) Descriptor() ([]byte, []int)
Deprecated: Use PresenceStatsResult.ProtoReflect.Descriptor instead.
func (*PresenceStatsResult) GetNumClients ¶
func (x *PresenceStatsResult) GetNumClients() uint32
func (*PresenceStatsResult) GetNumUsers ¶
func (x *PresenceStatsResult) GetNumUsers() uint32
func (PresenceStatsResult) MarshalEasyJSON ¶
func (v PresenceStatsResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PresenceStatsResult) MarshalToSizedBufferVT ¶
func (m *PresenceStatsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PresenceStatsResult) MarshalToVT ¶
func (m *PresenceStatsResult) MarshalToVT(dAtA []byte) (int, error)
func (*PresenceStatsResult) MarshalVT ¶
func (m *PresenceStatsResult) MarshalVT() (dAtA []byte, err error)
func (*PresenceStatsResult) ProtoMessage ¶
func (*PresenceStatsResult) ProtoMessage()
func (*PresenceStatsResult) ProtoReflect ¶
func (x *PresenceStatsResult) ProtoReflect() protoreflect.Message
func (*PresenceStatsResult) Reset ¶
func (x *PresenceStatsResult) Reset()
func (*PresenceStatsResult) SizeVT ¶
func (m *PresenceStatsResult) SizeVT() (n int)
func (*PresenceStatsResult) String ¶
func (x *PresenceStatsResult) String() string
func (*PresenceStatsResult) UnmarshalEasyJSON ¶
func (v *PresenceStatsResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PresenceStatsResult) UnmarshalVT ¶
func (m *PresenceStatsResult) UnmarshalVT(dAtA []byte) error
type ProtobufCommandDecoder ¶
type ProtobufCommandDecoder struct {
// contains filtered or unexported fields
}
ProtobufCommandDecoder ...
func NewProtobufCommandDecoder ¶
func NewProtobufCommandDecoder(data []byte) *ProtobufCommandDecoder
NewProtobufCommandDecoder ...
func (*ProtobufCommandDecoder) Decode ¶
func (d *ProtobufCommandDecoder) Decode() (*Command, error)
Decode ...
func (*ProtobufCommandDecoder) Reset ¶
func (d *ProtobufCommandDecoder) Reset(data []byte) error
Reset ...
type ProtobufCommandEncoder ¶
type ProtobufCommandEncoder struct {
}
ProtobufCommandEncoder ...
func NewProtobufCommandEncoder ¶
func NewProtobufCommandEncoder() *ProtobufCommandEncoder
NewProtobufCommandEncoder ...
type ProtobufDataEncoder ¶
type ProtobufDataEncoder struct {
// contains filtered or unexported fields
}
ProtobufDataEncoder ...
func NewProtobufDataEncoder ¶
func NewProtobufDataEncoder() *ProtobufDataEncoder
NewProtobufDataEncoder ...
func (*ProtobufDataEncoder) Encode ¶
func (e *ProtobufDataEncoder) Encode(data []byte) error
Encode ...
type ProtobufPushEncoder ¶
type ProtobufPushEncoder struct {
}
ProtobufPushEncoder ...
func NewProtobufPushEncoder ¶
func NewProtobufPushEncoder() *ProtobufPushEncoder
NewProtobufPushEncoder ...
func (*ProtobufPushEncoder) Encode ¶
func (e *ProtobufPushEncoder) Encode(message *Push) ([]byte, error)
Encode Push to bytes.
func (*ProtobufPushEncoder) EncodeConnect ¶
func (e *ProtobufPushEncoder) EncodeConnect(message *Connect, reuse ...[]byte) ([]byte, error)
EncodeConnect to bytes.
func (*ProtobufPushEncoder) EncodeDisconnect ¶
func (e *ProtobufPushEncoder) EncodeDisconnect(message *Disconnect, reuse ...[]byte) ([]byte, error)
EncodeDisconnect to bytes.
func (*ProtobufPushEncoder) EncodeJoin ¶
func (e *ProtobufPushEncoder) EncodeJoin(message *Join, reuse ...[]byte) ([]byte, error)
EncodeJoin to bytes.
func (*ProtobufPushEncoder) EncodeLeave ¶
func (e *ProtobufPushEncoder) EncodeLeave(message *Leave, reuse ...[]byte) ([]byte, error)
EncodeLeave to bytes.
func (*ProtobufPushEncoder) EncodeMessage ¶
func (e *ProtobufPushEncoder) EncodeMessage(message *Message, reuse ...[]byte) ([]byte, error)
EncodeMessage to bytes.
func (*ProtobufPushEncoder) EncodePublication ¶
func (e *ProtobufPushEncoder) EncodePublication(message *Publication, reuse ...[]byte) ([]byte, error)
EncodePublication to bytes.
func (*ProtobufPushEncoder) EncodeRefresh ¶
func (e *ProtobufPushEncoder) EncodeRefresh(message *Refresh, reuse ...[]byte) ([]byte, error)
EncodeRefresh to bytes.
func (*ProtobufPushEncoder) EncodeSubscribe ¶
func (e *ProtobufPushEncoder) EncodeSubscribe(message *Subscribe, reuse ...[]byte) ([]byte, error)
EncodeSubscribe to bytes.
func (*ProtobufPushEncoder) EncodeUnsubscribe ¶
func (e *ProtobufPushEncoder) EncodeUnsubscribe(message *Unsubscribe, reuse ...[]byte) ([]byte, error)
EncodeUnsubscribe to bytes.
type ProtobufReplyDecoder ¶
type ProtobufReplyDecoder struct {
// contains filtered or unexported fields
}
ProtobufReplyDecoder ...
func NewProtobufReplyDecoder ¶
func NewProtobufReplyDecoder(data []byte) *ProtobufReplyDecoder
NewProtobufReplyDecoder ...
func (*ProtobufReplyDecoder) Decode ¶
func (d *ProtobufReplyDecoder) Decode() (*Reply, error)
Decode ...
func (*ProtobufReplyDecoder) Reset ¶
func (d *ProtobufReplyDecoder) Reset(data []byte) error
Reset ...
type ProtobufReplyEncoder ¶
type ProtobufReplyEncoder struct{}
ProtobufReplyEncoder ...
func NewProtobufReplyEncoder ¶
func NewProtobufReplyEncoder() *ProtobufReplyEncoder
NewProtobufReplyEncoder ...
type ProtobufResultEncoder ¶
type ProtobufResultEncoder struct{}
ProtobufResultEncoder ...
func NewProtobufResultEncoder ¶
func NewProtobufResultEncoder() *ProtobufResultEncoder
NewProtobufResultEncoder ...
func (*ProtobufResultEncoder) EncodeConnectResult ¶
func (e *ProtobufResultEncoder) EncodeConnectResult(res *ConnectResult) ([]byte, error)
EncodeConnectResult ...
func (*ProtobufResultEncoder) EncodeHistoryResult ¶
func (e *ProtobufResultEncoder) EncodeHistoryResult(res *HistoryResult) ([]byte, error)
EncodeHistoryResult ...
func (*ProtobufResultEncoder) EncodePingResult ¶
func (e *ProtobufResultEncoder) EncodePingResult(res *PingResult) ([]byte, error)
EncodePingResult ...
func (*ProtobufResultEncoder) EncodePresenceResult ¶
func (e *ProtobufResultEncoder) EncodePresenceResult(res *PresenceResult) ([]byte, error)
EncodePresenceResult ...
func (*ProtobufResultEncoder) EncodePresenceStatsResult ¶
func (e *ProtobufResultEncoder) EncodePresenceStatsResult(res *PresenceStatsResult) ([]byte, error)
EncodePresenceStatsResult ...
func (*ProtobufResultEncoder) EncodePublishResult ¶
func (e *ProtobufResultEncoder) EncodePublishResult(res *PublishResult) ([]byte, error)
EncodePublishResult ...
func (*ProtobufResultEncoder) EncodeRPCResult ¶
func (e *ProtobufResultEncoder) EncodeRPCResult(res *RPCResult) ([]byte, error)
EncodeRPCResult ...
func (*ProtobufResultEncoder) EncodeRefreshResult ¶
func (e *ProtobufResultEncoder) EncodeRefreshResult(res *RefreshResult) ([]byte, error)
EncodeRefreshResult ...
func (*ProtobufResultEncoder) EncodeSubRefreshResult ¶
func (e *ProtobufResultEncoder) EncodeSubRefreshResult(res *SubRefreshResult) ([]byte, error)
EncodeSubRefreshResult ...
func (*ProtobufResultEncoder) EncodeSubscribeResult ¶
func (e *ProtobufResultEncoder) EncodeSubscribeResult(res *SubscribeResult) ([]byte, error)
EncodeSubscribeResult ...
func (*ProtobufResultEncoder) EncodeUnsubscribeResult ¶
func (e *ProtobufResultEncoder) EncodeUnsubscribeResult(res *UnsubscribeResult) ([]byte, error)
EncodeUnsubscribeResult ...
type ProtobufStreamCommandDecoder ¶
type ProtobufStreamCommandDecoder struct {
// contains filtered or unexported fields
}
func NewProtobufStreamCommandDecoder ¶
func NewProtobufStreamCommandDecoder(reader io.Reader, messageSizeLimit int64) *ProtobufStreamCommandDecoder
type Publication ¶
type Publication struct {
Data Raw `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
Meta Raw `protobuf:"bytes,11,opt,name=meta,proto3" json:"meta,omitempty"`
Info *ClientInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
Tags map[string]string `` /* 135-byte string literal not displayed */
Delta bool `protobuf:"varint,8,opt,name=delta,proto3" json:"delta,omitempty"` // When set indicates that data in Publication is a delta from previous data.
Time int64 `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"` // Optional time of publication as Unix timestamp milliseconds.
Channel string `protobuf:"bytes,10,opt,name=channel,proto3" json:"channel,omitempty"` // Optional channel name if Publication relates to wildcard subscription.
// contains filtered or unexported fields
}
func (*Publication) Descriptor
deprecated
func (*Publication) Descriptor() ([]byte, []int)
Deprecated: Use Publication.ProtoReflect.Descriptor instead.
func (*Publication) GetChannel ¶
func (x *Publication) GetChannel() string
func (*Publication) GetData ¶
func (x *Publication) GetData() []byte
func (*Publication) GetDelta ¶
func (x *Publication) GetDelta() bool
func (*Publication) GetInfo ¶
func (x *Publication) GetInfo() *ClientInfo
func (*Publication) GetMeta ¶
func (x *Publication) GetMeta() []byte
func (*Publication) GetOffset ¶
func (x *Publication) GetOffset() uint64
func (*Publication) GetTags ¶
func (x *Publication) GetTags() map[string]string
func (*Publication) GetTime ¶
func (x *Publication) GetTime() int64
func (Publication) MarshalEasyJSON ¶
func (v Publication) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Publication) MarshalToSizedBufferVT ¶
func (m *Publication) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Publication) MarshalToVT ¶
func (m *Publication) MarshalToVT(dAtA []byte) (int, error)
func (*Publication) MarshalVT ¶
func (m *Publication) MarshalVT() (dAtA []byte, err error)
func (*Publication) ProtoMessage ¶
func (*Publication) ProtoMessage()
func (*Publication) ProtoReflect ¶
func (x *Publication) ProtoReflect() protoreflect.Message
func (*Publication) Reset ¶
func (x *Publication) Reset()
func (*Publication) SizeVT ¶
func (m *Publication) SizeVT() (n int)
func (*Publication) String ¶
func (x *Publication) String() string
func (*Publication) UnmarshalEasyJSON ¶
func (v *Publication) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Publication) UnmarshalVT ¶
func (m *Publication) UnmarshalVT(dAtA []byte) error
type PublishRequest ¶
type PublishRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
Data Raw `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Meta Raw `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
// contains filtered or unexported fields
}
func (*PublishRequest) Descriptor
deprecated
func (*PublishRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.
func (*PublishRequest) GetChannel ¶
func (x *PublishRequest) GetChannel() string
func (*PublishRequest) GetData ¶
func (x *PublishRequest) GetData() []byte
func (*PublishRequest) GetMeta ¶
func (x *PublishRequest) GetMeta() []byte
func (PublishRequest) MarshalEasyJSON ¶
func (v PublishRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PublishRequest) MarshalToSizedBufferVT ¶
func (m *PublishRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PublishRequest) MarshalToVT ¶
func (m *PublishRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PublishRequest) MarshalVT ¶
func (m *PublishRequest) MarshalVT() (dAtA []byte, err error)
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) ProtoReflect ¶
func (x *PublishRequest) ProtoReflect() protoreflect.Message
func (*PublishRequest) Reset ¶
func (x *PublishRequest) Reset()
func (*PublishRequest) SizeVT ¶
func (m *PublishRequest) SizeVT() (n int)
func (*PublishRequest) String ¶
func (x *PublishRequest) String() string
func (*PublishRequest) UnmarshalEasyJSON ¶
func (v *PublishRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PublishRequest) UnmarshalVT ¶
func (m *PublishRequest) UnmarshalVT(dAtA []byte) error
type PublishResult ¶
type PublishResult struct {
// contains filtered or unexported fields
}
func (*PublishResult) Descriptor
deprecated
func (*PublishResult) Descriptor() ([]byte, []int)
Deprecated: Use PublishResult.ProtoReflect.Descriptor instead.
func (PublishResult) MarshalEasyJSON ¶
func (v PublishResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PublishResult) MarshalToSizedBufferVT ¶
func (m *PublishResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PublishResult) MarshalToVT ¶
func (m *PublishResult) MarshalToVT(dAtA []byte) (int, error)
func (*PublishResult) MarshalVT ¶
func (m *PublishResult) MarshalVT() (dAtA []byte, err error)
func (*PublishResult) ProtoMessage ¶
func (*PublishResult) ProtoMessage()
func (*PublishResult) ProtoReflect ¶
func (x *PublishResult) ProtoReflect() protoreflect.Message
func (*PublishResult) Reset ¶
func (x *PublishResult) Reset()
func (*PublishResult) SizeVT ¶
func (m *PublishResult) SizeVT() (n int)
func (*PublishResult) String ¶
func (x *PublishResult) String() string
func (*PublishResult) UnmarshalEasyJSON ¶
func (v *PublishResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PublishResult) UnmarshalVT ¶
func (m *PublishResult) UnmarshalVT(dAtA []byte) error
type Push ¶
type Push struct {
Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
// ProtocolVersion2 server can push one of the following fields to the client. We are
// not using oneof here due to JSON interoperability concerns.
Pub *Publication `protobuf:"bytes,4,opt,name=pub,proto3" json:"pub,omitempty"`
Join *Join `protobuf:"bytes,5,opt,name=join,proto3" json:"join,omitempty"`
Leave *Leave `protobuf:"bytes,6,opt,name=leave,proto3" json:"leave,omitempty"`
Unsubscribe *Unsubscribe `protobuf:"bytes,7,opt,name=unsubscribe,proto3" json:"unsubscribe,omitempty"`
Message *Message `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
Subscribe *Subscribe `protobuf:"bytes,9,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
Connect *Connect `protobuf:"bytes,10,opt,name=connect,proto3" json:"connect,omitempty"`
Disconnect *Disconnect `protobuf:"bytes,11,opt,name=disconnect,proto3" json:"disconnect,omitempty"`
Refresh *Refresh `protobuf:"bytes,12,opt,name=refresh,proto3" json:"refresh,omitempty"`
// contains filtered or unexported fields
}
Push can be sent to a client as part of Reply in case of bidirectional transport or without additional wrapping in case of unidirectional transports. ProtocolVersion2 uses channel and one of the possible concrete push messages.
func (*Push) Descriptor
deprecated
func (*Push) GetChannel ¶
func (*Push) GetConnect ¶
func (*Push) GetDisconnect ¶
func (x *Push) GetDisconnect() *Disconnect
func (*Push) GetMessage ¶
func (*Push) GetPub ¶
func (x *Push) GetPub() *Publication
func (*Push) GetRefresh ¶
func (*Push) GetSubscribe ¶
func (*Push) GetUnsubscribe ¶
func (x *Push) GetUnsubscribe() *Unsubscribe
func (Push) MarshalEasyJSON ¶
func (v Push) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Push) MarshalToSizedBufferVT ¶
func (*Push) ProtoMessage ¶
func (*Push) ProtoMessage()
func (*Push) ProtoReflect ¶
func (x *Push) ProtoReflect() protoreflect.Message
func (*Push) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Push) UnmarshalVT ¶
type PushEncoder ¶
type PushEncoder interface {
Encode(*Push) ([]byte, error)
EncodeMessage(*Message, ...[]byte) ([]byte, error)
EncodePublication(*Publication, ...[]byte) ([]byte, error)
EncodeJoin(*Join, ...[]byte) ([]byte, error)
EncodeLeave(*Leave, ...[]byte) ([]byte, error)
EncodeUnsubscribe(*Unsubscribe, ...[]byte) ([]byte, error)
EncodeSubscribe(*Subscribe, ...[]byte) ([]byte, error)
EncodeConnect(*Connect, ...[]byte) ([]byte, error)
EncodeDisconnect(*Disconnect, ...[]byte) ([]byte, error)
EncodeRefresh(*Refresh, ...[]byte) ([]byte, error)
}
PushEncoder ...
type RPCRequest ¶
type RPCRequest struct {
Data Raw `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
// contains filtered or unexported fields
}
func (*RPCRequest) Descriptor
deprecated
func (*RPCRequest) Descriptor() ([]byte, []int)
Deprecated: Use RPCRequest.ProtoReflect.Descriptor instead.
func (*RPCRequest) GetData ¶
func (x *RPCRequest) GetData() []byte
func (*RPCRequest) GetMethod ¶
func (x *RPCRequest) GetMethod() string
func (RPCRequest) MarshalEasyJSON ¶
func (v RPCRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RPCRequest) MarshalToSizedBufferVT ¶
func (m *RPCRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RPCRequest) MarshalToVT ¶
func (m *RPCRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RPCRequest) MarshalVT ¶
func (m *RPCRequest) MarshalVT() (dAtA []byte, err error)
func (*RPCRequest) ProtoMessage ¶
func (*RPCRequest) ProtoMessage()
func (*RPCRequest) ProtoReflect ¶
func (x *RPCRequest) ProtoReflect() protoreflect.Message
func (*RPCRequest) Reset ¶
func (x *RPCRequest) Reset()
func (*RPCRequest) SizeVT ¶
func (m *RPCRequest) SizeVT() (n int)
func (*RPCRequest) String ¶
func (x *RPCRequest) String() string
func (*RPCRequest) UnmarshalEasyJSON ¶
func (v *RPCRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RPCRequest) UnmarshalVT ¶
func (m *RPCRequest) UnmarshalVT(dAtA []byte) error
type RPCResult ¶
type RPCResult struct {
Data Raw `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*RPCResult) Descriptor
deprecated
func (RPCResult) MarshalEasyJSON ¶
func (v RPCResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RPCResult) MarshalToSizedBufferVT ¶
func (*RPCResult) ProtoMessage ¶
func (*RPCResult) ProtoMessage()
func (*RPCResult) ProtoReflect ¶
func (x *RPCResult) ProtoReflect() protoreflect.Message
func (*RPCResult) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RPCResult) UnmarshalVT ¶
type Raw ¶
type Raw []byte
Raw type used by Centrifuge protocol as a type for fields in structs which value we want to stay untouched. For example custom application specific JSON payload data in published message. This is very similar to json.RawMessage type but have some extra methods to fit gogo/protobuf custom type interface.
func (Raw) MarshalJSON ¶
MarshalJSON returns *r as the JSON encoding of r.
func (*Raw) UnmarshalJSON ¶
UnmarshalJSON sets *r to a copy of data.
type Refresh ¶
type Refresh struct {
Expires bool `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
func (*Refresh) Descriptor
deprecated
func (*Refresh) GetExpires ¶
func (Refresh) MarshalEasyJSON ¶
func (v Refresh) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Refresh) MarshalToSizedBufferVT ¶
func (*Refresh) ProtoMessage ¶
func (*Refresh) ProtoMessage()
func (*Refresh) ProtoReflect ¶
func (x *Refresh) ProtoReflect() protoreflect.Message
func (*Refresh) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Refresh) UnmarshalVT ¶
type RefreshRequest ¶
type RefreshRequest struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetToken ¶
func (x *RefreshRequest) GetToken() string
func (RefreshRequest) MarshalEasyJSON ¶
func (v RefreshRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RefreshRequest) MarshalToSizedBufferVT ¶
func (m *RefreshRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RefreshRequest) MarshalToVT ¶
func (m *RefreshRequest) MarshalToVT(dAtA []byte) (int, error)
func (*RefreshRequest) MarshalVT ¶
func (m *RefreshRequest) MarshalVT() (dAtA []byte, err error)
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) SizeVT ¶
func (m *RefreshRequest) SizeVT() (n int)
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
func (*RefreshRequest) UnmarshalEasyJSON ¶
func (v *RefreshRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RefreshRequest) UnmarshalVT ¶
func (m *RefreshRequest) UnmarshalVT(dAtA []byte) error
type RefreshResult ¶
type RefreshResult struct {
Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Expires bool `protobuf:"varint,3,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
func (*RefreshResult) Descriptor
deprecated
func (*RefreshResult) Descriptor() ([]byte, []int)
Deprecated: Use RefreshResult.ProtoReflect.Descriptor instead.
func (*RefreshResult) GetClient ¶
func (x *RefreshResult) GetClient() string
func (*RefreshResult) GetExpires ¶
func (x *RefreshResult) GetExpires() bool
func (*RefreshResult) GetTtl ¶
func (x *RefreshResult) GetTtl() uint32
func (*RefreshResult) GetVersion ¶
func (x *RefreshResult) GetVersion() string
func (RefreshResult) MarshalEasyJSON ¶
func (v RefreshResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RefreshResult) MarshalToSizedBufferVT ¶
func (m *RefreshResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RefreshResult) MarshalToVT ¶
func (m *RefreshResult) MarshalToVT(dAtA []byte) (int, error)
func (*RefreshResult) MarshalVT ¶
func (m *RefreshResult) MarshalVT() (dAtA []byte, err error)
func (*RefreshResult) ProtoMessage ¶
func (*RefreshResult) ProtoMessage()
func (*RefreshResult) ProtoReflect ¶
func (x *RefreshResult) ProtoReflect() protoreflect.Message
func (*RefreshResult) Reset ¶
func (x *RefreshResult) Reset()
func (*RefreshResult) SizeVT ¶
func (m *RefreshResult) SizeVT() (n int)
func (*RefreshResult) String ¶
func (x *RefreshResult) String() string
func (*RefreshResult) UnmarshalEasyJSON ¶
func (v *RefreshResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RefreshResult) UnmarshalVT ¶
func (m *RefreshResult) UnmarshalVT(dAtA []byte) error
type Reply ¶
type Reply struct {
// Id will only be set to a value > 0 for replies to commands. For pushes
// it will have zero value.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Error can only be set in replies to commands. For pushes it will have zero value.
Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// ProtocolVersion2 server can send one of the following fields. We are not using
// oneof here due to JSON interoperability concerns.
Push *Push `protobuf:"bytes,4,opt,name=push,proto3" json:"push,omitempty"`
Connect *ConnectResult `protobuf:"bytes,5,opt,name=connect,proto3" json:"connect,omitempty"`
Subscribe *SubscribeResult `protobuf:"bytes,6,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
Unsubscribe *UnsubscribeResult `protobuf:"bytes,7,opt,name=unsubscribe,proto3" json:"unsubscribe,omitempty"`
Publish *PublishResult `protobuf:"bytes,8,opt,name=publish,proto3" json:"publish,omitempty"`
Presence *PresenceResult `protobuf:"bytes,9,opt,name=presence,proto3" json:"presence,omitempty"`
PresenceStats *PresenceStatsResult `protobuf:"bytes,10,opt,name=presence_stats,json=presenceStats,proto3" json:"presence_stats,omitempty"`
History *HistoryResult `protobuf:"bytes,11,opt,name=history,proto3" json:"history,omitempty"`
Ping *PingResult `protobuf:"bytes,12,opt,name=ping,proto3" json:"ping,omitempty"`
Rpc *RPCResult `protobuf:"bytes,13,opt,name=rpc,proto3" json:"rpc,omitempty"`
Refresh *RefreshResult `protobuf:"bytes,14,opt,name=refresh,proto3" json:"refresh,omitempty"`
SubRefresh *SubRefreshResult `protobuf:"bytes,15,opt,name=sub_refresh,json=subRefresh,proto3" json:"sub_refresh,omitempty"`
// contains filtered or unexported fields
}
Reply sent from a server to a client. ProtocolVersion2 uses id and one of the possible concrete result messages.
func (*Reply) Descriptor
deprecated
func (*Reply) GetConnect ¶
func (x *Reply) GetConnect() *ConnectResult
func (*Reply) GetHistory ¶
func (x *Reply) GetHistory() *HistoryResult
func (*Reply) GetPing ¶
func (x *Reply) GetPing() *PingResult
func (*Reply) GetPresence ¶
func (x *Reply) GetPresence() *PresenceResult
func (*Reply) GetPresenceStats ¶
func (x *Reply) GetPresenceStats() *PresenceStatsResult
func (*Reply) GetPublish ¶
func (x *Reply) GetPublish() *PublishResult
func (*Reply) GetRefresh ¶
func (x *Reply) GetRefresh() *RefreshResult
func (*Reply) GetSubRefresh ¶
func (x *Reply) GetSubRefresh() *SubRefreshResult
func (*Reply) GetSubscribe ¶
func (x *Reply) GetSubscribe() *SubscribeResult
func (*Reply) GetUnsubscribe ¶
func (x *Reply) GetUnsubscribe() *UnsubscribeResult
func (Reply) MarshalEasyJSON ¶
func (v Reply) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Reply) MarshalToSizedBufferVT ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
func (*Reply) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Reply) UnmarshalVT ¶
type ReplyDecoder ¶
ReplyDecoder ...
type ReplyEncoder ¶
ReplyEncoder ...
type ReplyPoolCollection ¶
type ReplyPoolCollection struct {
// contains filtered or unexported fields
}
func (*ReplyPoolCollection) AcquireConnectReply ¶
func (p *ReplyPoolCollection) AcquireConnectReply(result *ConnectResult) *Reply
func (*ReplyPoolCollection) AcquireHistoryReply ¶
func (p *ReplyPoolCollection) AcquireHistoryReply(result *HistoryResult) *Reply
func (*ReplyPoolCollection) AcquirePresenceReply ¶
func (p *ReplyPoolCollection) AcquirePresenceReply(result *PresenceResult) *Reply
func (*ReplyPoolCollection) AcquirePresenceStatsReply ¶
func (p *ReplyPoolCollection) AcquirePresenceStatsReply(result *PresenceStatsResult) *Reply
func (*ReplyPoolCollection) AcquirePublishReply ¶
func (p *ReplyPoolCollection) AcquirePublishReply(result *PublishResult) *Reply
func (*ReplyPoolCollection) AcquireRPCReply ¶
func (p *ReplyPoolCollection) AcquireRPCReply(result *RPCResult) *Reply
func (*ReplyPoolCollection) AcquireRefreshReply ¶
func (p *ReplyPoolCollection) AcquireRefreshReply(result *RefreshResult) *Reply
func (*ReplyPoolCollection) AcquireSubRefreshReply ¶
func (p *ReplyPoolCollection) AcquireSubRefreshReply(result *SubRefreshResult) *Reply
func (*ReplyPoolCollection) AcquireSubscribeReply ¶
func (p *ReplyPoolCollection) AcquireSubscribeReply(result *SubscribeResult) *Reply
func (*ReplyPoolCollection) AcquireUnsubscribeReply ¶
func (p *ReplyPoolCollection) AcquireUnsubscribeReply(result *UnsubscribeResult) *Reply
func (*ReplyPoolCollection) ReleaseConnectReply ¶
func (p *ReplyPoolCollection) ReleaseConnectReply(r *Reply)
func (*ReplyPoolCollection) ReleaseHistoryReply ¶
func (p *ReplyPoolCollection) ReleaseHistoryReply(r *Reply)
func (*ReplyPoolCollection) ReleasePresenceReply ¶
func (p *ReplyPoolCollection) ReleasePresenceReply(r *Reply)
func (*ReplyPoolCollection) ReleasePresenceStatsReply ¶
func (p *ReplyPoolCollection) ReleasePresenceStatsReply(r *Reply)
func (*ReplyPoolCollection) ReleasePublishReply ¶
func (p *ReplyPoolCollection) ReleasePublishReply(r *Reply)
func (*ReplyPoolCollection) ReleaseRPCReply ¶
func (p *ReplyPoolCollection) ReleaseRPCReply(r *Reply)
func (*ReplyPoolCollection) ReleaseRefreshReply ¶
func (p *ReplyPoolCollection) ReleaseRefreshReply(r *Reply)
func (*ReplyPoolCollection) ReleaseSubRefreshReply ¶
func (p *ReplyPoolCollection) ReleaseSubRefreshReply(r *Reply)
func (*ReplyPoolCollection) ReleaseSubscribeReply ¶
func (p *ReplyPoolCollection) ReleaseSubscribeReply(r *Reply)
func (*ReplyPoolCollection) ReleaseUnsubscribeReply ¶
func (p *ReplyPoolCollection) ReleaseUnsubscribeReply(r *Reply)
type ResultEncoder ¶
type ResultEncoder interface {
EncodeConnectResult(*ConnectResult) ([]byte, error)
EncodeRefreshResult(*RefreshResult) ([]byte, error)
EncodeSubscribeResult(*SubscribeResult) ([]byte, error)
EncodeSubRefreshResult(*SubRefreshResult) ([]byte, error)
EncodeUnsubscribeResult(*UnsubscribeResult) ([]byte, error)
EncodePublishResult(*PublishResult) ([]byte, error)
EncodePresenceResult(*PresenceResult) ([]byte, error)
EncodePresenceStatsResult(*PresenceStatsResult) ([]byte, error)
EncodeHistoryResult(*HistoryResult) ([]byte, error)
EncodePingResult(*PingResult) ([]byte, error)
EncodeRPCResult(*RPCResult) ([]byte, error)
}
ResultEncoder ...
type SendRequest ¶
type SendRequest struct {
Data Raw `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetData ¶
func (x *SendRequest) GetData() []byte
func (SendRequest) MarshalEasyJSON ¶
func (v SendRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*SendRequest) MarshalToSizedBufferVT ¶
func (m *SendRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SendRequest) MarshalToVT ¶
func (m *SendRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SendRequest) MarshalVT ¶
func (m *SendRequest) MarshalVT() (dAtA []byte, err error)
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) SizeVT ¶
func (m *SendRequest) SizeVT() (n int)
func (*SendRequest) String ¶
func (x *SendRequest) String() string
func (*SendRequest) UnmarshalEasyJSON ¶
func (v *SendRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SendRequest) UnmarshalVT ¶
func (m *SendRequest) UnmarshalVT(dAtA []byte) error
type StreamCommandDecoder ¶
type StreamCommandDecoder interface {
Decode() (*Command, int, error)
Reset(reader io.Reader, messageSizeLimit int64)
}
func GetStreamCommandDecoder ¶
func GetStreamCommandDecoder(protoType Type, reader io.Reader) StreamCommandDecoder
func GetStreamCommandDecoderLimited ¶
func GetStreamCommandDecoderLimited(protoType Type, reader io.Reader, messageSizeLimit int64) StreamCommandDecoder
type StreamPosition ¶
type StreamPosition struct {
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Epoch string `protobuf:"bytes,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
// contains filtered or unexported fields
}
func (*StreamPosition) Descriptor
deprecated
func (*StreamPosition) Descriptor() ([]byte, []int)
Deprecated: Use StreamPosition.ProtoReflect.Descriptor instead.
func (*StreamPosition) GetEpoch ¶
func (x *StreamPosition) GetEpoch() string
func (*StreamPosition) GetOffset ¶
func (x *StreamPosition) GetOffset() uint64
func (StreamPosition) MarshalEasyJSON ¶
func (v StreamPosition) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*StreamPosition) MarshalToSizedBufferVT ¶
func (m *StreamPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StreamPosition) MarshalToVT ¶
func (m *StreamPosition) MarshalToVT(dAtA []byte) (int, error)
func (*StreamPosition) MarshalVT ¶
func (m *StreamPosition) MarshalVT() (dAtA []byte, err error)
func (*StreamPosition) ProtoMessage ¶
func (*StreamPosition) ProtoMessage()
func (*StreamPosition) ProtoReflect ¶
func (x *StreamPosition) ProtoReflect() protoreflect.Message
func (*StreamPosition) Reset ¶
func (x *StreamPosition) Reset()
func (*StreamPosition) SizeVT ¶
func (m *StreamPosition) SizeVT() (n int)
func (*StreamPosition) String ¶
func (x *StreamPosition) String() string
func (*StreamPosition) UnmarshalEasyJSON ¶
func (v *StreamPosition) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StreamPosition) UnmarshalVT ¶
func (m *StreamPosition) UnmarshalVT(dAtA []byte) error
type SubRefreshRequest ¶
type SubRefreshRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*SubRefreshRequest) Descriptor
deprecated
func (*SubRefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubRefreshRequest.ProtoReflect.Descriptor instead.
func (*SubRefreshRequest) GetChannel ¶
func (x *SubRefreshRequest) GetChannel() string
func (*SubRefreshRequest) GetToken ¶
func (x *SubRefreshRequest) GetToken() string
func (SubRefreshRequest) MarshalEasyJSON ¶
func (v SubRefreshRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*SubRefreshRequest) MarshalToSizedBufferVT ¶
func (m *SubRefreshRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SubRefreshRequest) MarshalToVT ¶
func (m *SubRefreshRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SubRefreshRequest) MarshalVT ¶
func (m *SubRefreshRequest) MarshalVT() (dAtA []byte, err error)
func (*SubRefreshRequest) ProtoMessage ¶
func (*SubRefreshRequest) ProtoMessage()
func (*SubRefreshRequest) ProtoReflect ¶
func (x *SubRefreshRequest) ProtoReflect() protoreflect.Message
func (*SubRefreshRequest) Reset ¶
func (x *SubRefreshRequest) Reset()
func (*SubRefreshRequest) SizeVT ¶
func (m *SubRefreshRequest) SizeVT() (n int)
func (*SubRefreshRequest) String ¶
func (x *SubRefreshRequest) String() string
func (*SubRefreshRequest) UnmarshalEasyJSON ¶
func (v *SubRefreshRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SubRefreshRequest) UnmarshalVT ¶
func (m *SubRefreshRequest) UnmarshalVT(dAtA []byte) error
type SubRefreshResult ¶
type SubRefreshResult struct {
Expires bool `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
func (*SubRefreshResult) Descriptor
deprecated
func (*SubRefreshResult) Descriptor() ([]byte, []int)
Deprecated: Use SubRefreshResult.ProtoReflect.Descriptor instead.
func (*SubRefreshResult) GetExpires ¶
func (x *SubRefreshResult) GetExpires() bool
func (*SubRefreshResult) GetTtl ¶
func (x *SubRefreshResult) GetTtl() uint32
func (SubRefreshResult) MarshalEasyJSON ¶
func (v SubRefreshResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*SubRefreshResult) MarshalToSizedBufferVT ¶
func (m *SubRefreshResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SubRefreshResult) MarshalToVT ¶
func (m *SubRefreshResult) MarshalToVT(dAtA []byte) (int, error)
func (*SubRefreshResult) MarshalVT ¶
func (m *SubRefreshResult) MarshalVT() (dAtA []byte, err error)
func (*SubRefreshResult) ProtoMessage ¶
func (*SubRefreshResult) ProtoMessage()
func (*SubRefreshResult) ProtoReflect ¶
func (x *SubRefreshResult) ProtoReflect() protoreflect.Message
func (*SubRefreshResult) Reset ¶
func (x *SubRefreshResult) Reset()
func (*SubRefreshResult) SizeVT ¶
func (m *SubRefreshResult) SizeVT() (n int)
func (*SubRefreshResult) String ¶
func (x *SubRefreshResult) String() string
func (*SubRefreshResult) UnmarshalEasyJSON ¶
func (v *SubRefreshResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SubRefreshResult) UnmarshalVT ¶
func (m *SubRefreshResult) UnmarshalVT(dAtA []byte) error
type Subscribe ¶
type Subscribe struct {
Recoverable bool `protobuf:"varint,1,opt,name=recoverable,proto3" json:"recoverable,omitempty"`
Epoch string `protobuf:"bytes,4,opt,name=epoch,proto3" json:"epoch,omitempty"`
Offset uint64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Positioned bool `protobuf:"varint,6,opt,name=positioned,proto3" json:"positioned,omitempty"`
Data Raw `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Subscribe) Descriptor
deprecated
func (*Subscribe) GetPositioned ¶
func (*Subscribe) GetRecoverable ¶
func (Subscribe) MarshalEasyJSON ¶
func (v Subscribe) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Subscribe) MarshalToSizedBufferVT ¶
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) ProtoReflect ¶
func (x *Subscribe) ProtoReflect() protoreflect.Message
func (*Subscribe) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Subscribe) UnmarshalVT ¶
type SubscribeRequest ¶
type SubscribeRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
Recover bool `protobuf:"varint,3,opt,name=recover,proto3" json:"recover,omitempty"`
Epoch string `protobuf:"bytes,6,opt,name=epoch,proto3" json:"epoch,omitempty"`
Offset uint64 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"`
Data Raw `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
Positioned bool `protobuf:"varint,9,opt,name=positioned,proto3" json:"positioned,omitempty"`
Recoverable bool `protobuf:"varint,10,opt,name=recoverable,proto3" json:"recoverable,omitempty"`
JoinLeave bool `protobuf:"varint,11,opt,name=join_leave,json=joinLeave,proto3" json:"join_leave,omitempty"`
Delta string `protobuf:"bytes,12,opt,name=delta,proto3" json:"delta,omitempty"`
Filter string `protobuf:"bytes,13,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeRequest) Descriptor
deprecated
func (*SubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeRequest) GetChannel ¶
func (x *SubscribeRequest) GetChannel() string
func (*SubscribeRequest) GetData ¶
func (x *SubscribeRequest) GetData() []byte
func (*SubscribeRequest) GetDelta ¶
func (x *SubscribeRequest) GetDelta() string
func (*SubscribeRequest) GetEpoch ¶
func (x *SubscribeRequest) GetEpoch() string
func (*SubscribeRequest) GetFilter ¶
func (x *SubscribeRequest) GetFilter() string
func (*SubscribeRequest) GetJoinLeave ¶
func (x *SubscribeRequest) GetJoinLeave() bool
func (*SubscribeRequest) GetOffset ¶
func (x *SubscribeRequest) GetOffset() uint64
func (*SubscribeRequest) GetPositioned ¶
func (x *SubscribeRequest) GetPositioned() bool
func (*SubscribeRequest) GetRecover ¶
func (x *SubscribeRequest) GetRecover() bool
func (*SubscribeRequest) GetRecoverable ¶
func (x *SubscribeRequest) GetRecoverable() bool
func (*SubscribeRequest) GetToken ¶
func (x *SubscribeRequest) GetToken() string
func (SubscribeRequest) MarshalEasyJSON ¶
func (v SubscribeRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*SubscribeRequest) MarshalToSizedBufferVT ¶
func (m *SubscribeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SubscribeRequest) MarshalToVT ¶
func (m *SubscribeRequest) MarshalToVT(dAtA []byte) (int, error)
func (*SubscribeRequest) MarshalVT ¶
func (m *SubscribeRequest) MarshalVT() (dAtA []byte, err error)
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) ProtoReflect ¶
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
func (*SubscribeRequest) Reset ¶
func (x *SubscribeRequest) Reset()
func (*SubscribeRequest) SizeVT ¶
func (m *SubscribeRequest) SizeVT() (n int)
func (*SubscribeRequest) String ¶
func (x *SubscribeRequest) String() string
func (*SubscribeRequest) UnmarshalEasyJSON ¶
func (v *SubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SubscribeRequest) UnmarshalVT ¶
func (m *SubscribeRequest) UnmarshalVT(dAtA []byte) error
type SubscribeResult ¶
type SubscribeResult struct {
Expires bool `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"`
Ttl uint32 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
Recoverable bool `protobuf:"varint,3,opt,name=recoverable,proto3" json:"recoverable,omitempty"`
Epoch string `protobuf:"bytes,6,opt,name=epoch,proto3" json:"epoch,omitempty"`
Publications []*Publication `protobuf:"bytes,7,rep,name=publications,proto3" json:"publications,omitempty"`
Recovered bool `protobuf:"varint,8,opt,name=recovered,proto3" json:"recovered,omitempty"`
Offset uint64 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"`
Positioned bool `protobuf:"varint,10,opt,name=positioned,proto3" json:"positioned,omitempty"`
Data Raw `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"`
WasRecovering bool `protobuf:"varint,12,opt,name=was_recovering,json=wasRecovering,proto3" json:"was_recovering,omitempty"`
Delta bool `protobuf:"varint,13,opt,name=delta,proto3" json:"delta,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeResult) Descriptor
deprecated
func (*SubscribeResult) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeResult.ProtoReflect.Descriptor instead.
func (*SubscribeResult) GetData ¶
func (x *SubscribeResult) GetData() []byte
func (*SubscribeResult) GetDelta ¶
func (x *SubscribeResult) GetDelta() bool
func (*SubscribeResult) GetEpoch ¶
func (x *SubscribeResult) GetEpoch() string
func (*SubscribeResult) GetExpires ¶
func (x *SubscribeResult) GetExpires() bool
func (*SubscribeResult) GetOffset ¶
func (x *SubscribeResult) GetOffset() uint64
func (*SubscribeResult) GetPositioned ¶
func (x *SubscribeResult) GetPositioned() bool
func (*SubscribeResult) GetPublications ¶
func (x *SubscribeResult) GetPublications() []*Publication
func (*SubscribeResult) GetRecoverable ¶
func (x *SubscribeResult) GetRecoverable() bool
func (*SubscribeResult) GetRecovered ¶
func (x *SubscribeResult) GetRecovered() bool
func (*SubscribeResult) GetTtl ¶
func (x *SubscribeResult) GetTtl() uint32
func (*SubscribeResult) GetWasRecovering ¶
func (x *SubscribeResult) GetWasRecovering() bool
func (SubscribeResult) MarshalEasyJSON ¶
func (v SubscribeResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*SubscribeResult) MarshalToSizedBufferVT ¶
func (m *SubscribeResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SubscribeResult) MarshalToVT ¶
func (m *SubscribeResult) MarshalToVT(dAtA []byte) (int, error)
func (*SubscribeResult) MarshalVT ¶
func (m *SubscribeResult) MarshalVT() (dAtA []byte, err error)
func (*SubscribeResult) ProtoMessage ¶
func (*SubscribeResult) ProtoMessage()
func (*SubscribeResult) ProtoReflect ¶
func (x *SubscribeResult) ProtoReflect() protoreflect.Message
func (*SubscribeResult) Reset ¶
func (x *SubscribeResult) Reset()
func (*SubscribeResult) SizeVT ¶
func (m *SubscribeResult) SizeVT() (n int)
func (*SubscribeResult) String ¶
func (x *SubscribeResult) String() string
func (*SubscribeResult) UnmarshalEasyJSON ¶
func (v *SubscribeResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SubscribeResult) UnmarshalVT ¶
func (m *SubscribeResult) UnmarshalVT(dAtA []byte) error
type Unsubscribe ¶
type Unsubscribe struct {
Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Unsubscribe) Descriptor
deprecated
func (*Unsubscribe) Descriptor() ([]byte, []int)
Deprecated: Use Unsubscribe.ProtoReflect.Descriptor instead.
func (*Unsubscribe) GetCode ¶
func (x *Unsubscribe) GetCode() uint32
func (*Unsubscribe) GetReason ¶
func (x *Unsubscribe) GetReason() string
func (Unsubscribe) MarshalEasyJSON ¶
func (v Unsubscribe) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*Unsubscribe) MarshalToSizedBufferVT ¶
func (m *Unsubscribe) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Unsubscribe) MarshalToVT ¶
func (m *Unsubscribe) MarshalToVT(dAtA []byte) (int, error)
func (*Unsubscribe) MarshalVT ¶
func (m *Unsubscribe) MarshalVT() (dAtA []byte, err error)
func (*Unsubscribe) ProtoMessage ¶
func (*Unsubscribe) ProtoMessage()
func (*Unsubscribe) ProtoReflect ¶
func (x *Unsubscribe) ProtoReflect() protoreflect.Message
func (*Unsubscribe) Reset ¶
func (x *Unsubscribe) Reset()
func (*Unsubscribe) SizeVT ¶
func (m *Unsubscribe) SizeVT() (n int)
func (*Unsubscribe) String ¶
func (x *Unsubscribe) String() string
func (*Unsubscribe) UnmarshalEasyJSON ¶
func (v *Unsubscribe) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Unsubscribe) UnmarshalVT ¶
func (m *Unsubscribe) UnmarshalVT(dAtA []byte) error
type UnsubscribeRequest ¶
type UnsubscribeRequest struct {
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
// contains filtered or unexported fields
}
func (*UnsubscribeRequest) Descriptor
deprecated
func (*UnsubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*UnsubscribeRequest) GetChannel ¶
func (x *UnsubscribeRequest) GetChannel() string
func (UnsubscribeRequest) MarshalEasyJSON ¶
func (v UnsubscribeRequest) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*UnsubscribeRequest) MarshalToSizedBufferVT ¶
func (m *UnsubscribeRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UnsubscribeRequest) MarshalToVT ¶
func (m *UnsubscribeRequest) MarshalToVT(dAtA []byte) (int, error)
func (*UnsubscribeRequest) MarshalVT ¶
func (m *UnsubscribeRequest) MarshalVT() (dAtA []byte, err error)
func (*UnsubscribeRequest) ProtoMessage ¶
func (*UnsubscribeRequest) ProtoMessage()
func (*UnsubscribeRequest) ProtoReflect ¶
func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message
func (*UnsubscribeRequest) Reset ¶
func (x *UnsubscribeRequest) Reset()
func (*UnsubscribeRequest) SizeVT ¶
func (m *UnsubscribeRequest) SizeVT() (n int)
func (*UnsubscribeRequest) String ¶
func (x *UnsubscribeRequest) String() string
func (*UnsubscribeRequest) UnmarshalEasyJSON ¶
func (v *UnsubscribeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UnsubscribeRequest) UnmarshalVT ¶
func (m *UnsubscribeRequest) UnmarshalVT(dAtA []byte) error
type UnsubscribeResult ¶
type UnsubscribeResult struct {
// contains filtered or unexported fields
}
func (*UnsubscribeResult) Descriptor
deprecated
func (*UnsubscribeResult) Descriptor() ([]byte, []int)
Deprecated: Use UnsubscribeResult.ProtoReflect.Descriptor instead.
func (UnsubscribeResult) MarshalEasyJSON ¶
func (v UnsubscribeResult) MarshalEasyJSON(w *writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*UnsubscribeResult) MarshalToSizedBufferVT ¶
func (m *UnsubscribeResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UnsubscribeResult) MarshalToVT ¶
func (m *UnsubscribeResult) MarshalToVT(dAtA []byte) (int, error)
func (*UnsubscribeResult) MarshalVT ¶
func (m *UnsubscribeResult) MarshalVT() (dAtA []byte, err error)
func (*UnsubscribeResult) ProtoMessage ¶
func (*UnsubscribeResult) ProtoMessage()
func (*UnsubscribeResult) ProtoReflect ¶
func (x *UnsubscribeResult) ProtoReflect() protoreflect.Message
func (*UnsubscribeResult) Reset ¶
func (x *UnsubscribeResult) Reset()
func (*UnsubscribeResult) SizeVT ¶
func (m *UnsubscribeResult) SizeVT() (n int)
func (*UnsubscribeResult) String ¶
func (x *UnsubscribeResult) String() string
func (*UnsubscribeResult) UnmarshalEasyJSON ¶
func (v *UnsubscribeResult) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UnsubscribeResult) UnmarshalVT ¶
func (m *UnsubscribeResult) UnmarshalVT(dAtA []byte) error