Documentation ¶
Overview ¶
Package comet is a generated protocol buffer package.
It is generated from these files:
comet.proto
It has these top-level messages:
NoArgs NoReply PushMsgArg PushMsgsArg PushMsgsReply MPushMsgArg MPushMsgReply MPushMsgsArg MPushMsgsReply BoardcastArg BoardcastRoomArg RoomsReply
Index ¶
- type BoardcastArg
- func (m *BoardcastArg) Marshal() (data []byte, err error)
- func (m *BoardcastArg) MarshalTo(data []byte) (n int, err error)
- func (*BoardcastArg) ProtoMessage()
- func (m *BoardcastArg) Reset()
- func (m *BoardcastArg) Size() (n int)
- func (m *BoardcastArg) String() string
- func (m *BoardcastArg) Unmarshal(data []byte) error
- type BoardcastRoomArg
- func (m *BoardcastRoomArg) Marshal() (data []byte, err error)
- func (m *BoardcastRoomArg) MarshalTo(data []byte) (n int, err error)
- func (*BoardcastRoomArg) ProtoMessage()
- func (m *BoardcastRoomArg) Reset()
- func (m *BoardcastRoomArg) Size() (n int)
- func (m *BoardcastRoomArg) String() string
- func (m *BoardcastRoomArg) Unmarshal(data []byte) error
- type MPushMsgArg
- func (m *MPushMsgArg) Marshal() (data []byte, err error)
- func (m *MPushMsgArg) MarshalTo(data []byte) (n int, err error)
- func (*MPushMsgArg) ProtoMessage()
- func (m *MPushMsgArg) Reset()
- func (m *MPushMsgArg) Size() (n int)
- func (m *MPushMsgArg) String() string
- func (m *MPushMsgArg) Unmarshal(data []byte) error
- type MPushMsgReply
- func (m *MPushMsgReply) Marshal() (data []byte, err error)
- func (m *MPushMsgReply) MarshalTo(data []byte) (n int, err error)
- func (*MPushMsgReply) ProtoMessage()
- func (m *MPushMsgReply) Reset()
- func (m *MPushMsgReply) Size() (n int)
- func (m *MPushMsgReply) String() string
- func (m *MPushMsgReply) Unmarshal(data []byte) error
- type MPushMsgsArg
- func (m *MPushMsgsArg) Marshal() (data []byte, err error)
- func (m *MPushMsgsArg) MarshalTo(data []byte) (n int, err error)
- func (*MPushMsgsArg) ProtoMessage()
- func (m *MPushMsgsArg) Reset()
- func (m *MPushMsgsArg) Size() (n int)
- func (m *MPushMsgsArg) String() string
- func (m *MPushMsgsArg) Unmarshal(data []byte) error
- type MPushMsgsReply
- func (m *MPushMsgsReply) Marshal() (data []byte, err error)
- func (m *MPushMsgsReply) MarshalTo(data []byte) (n int, err error)
- func (*MPushMsgsReply) ProtoMessage()
- func (m *MPushMsgsReply) Reset()
- func (m *MPushMsgsReply) Size() (n int)
- func (m *MPushMsgsReply) String() string
- func (m *MPushMsgsReply) Unmarshal(data []byte) error
- type NoArgs
- type NoReply
- type PushMsgArg
- func (m *PushMsgArg) Marshal() (data []byte, err error)
- func (m *PushMsgArg) MarshalTo(data []byte) (n int, err error)
- func (*PushMsgArg) ProtoMessage()
- func (m *PushMsgArg) Reset()
- func (m *PushMsgArg) Size() (n int)
- func (m *PushMsgArg) String() string
- func (m *PushMsgArg) Unmarshal(data []byte) error
- type PushMsgsArg
- func (m *PushMsgsArg) Marshal() (data []byte, err error)
- func (m *PushMsgsArg) MarshalTo(data []byte) (n int, err error)
- func (*PushMsgsArg) ProtoMessage()
- func (m *PushMsgsArg) Reset()
- func (m *PushMsgsArg) Size() (n int)
- func (m *PushMsgsArg) String() string
- func (m *PushMsgsArg) Unmarshal(data []byte) error
- type PushMsgsReply
- func (m *PushMsgsReply) Marshal() (data []byte, err error)
- func (m *PushMsgsReply) MarshalTo(data []byte) (n int, err error)
- func (*PushMsgsReply) ProtoMessage()
- func (m *PushMsgsReply) Reset()
- func (m *PushMsgsReply) Size() (n int)
- func (m *PushMsgsReply) String() string
- func (m *PushMsgsReply) Unmarshal(data []byte) error
- type RoomsReply
- func (m *RoomsReply) GetRooms() map[int32]bool
- func (m *RoomsReply) Marshal() (data []byte, err error)
- func (m *RoomsReply) MarshalTo(data []byte) (n int, err error)
- func (*RoomsReply) ProtoMessage()
- func (m *RoomsReply) Reset()
- func (m *RoomsReply) Size() (n int)
- func (m *RoomsReply) String() string
- func (m *RoomsReply) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardcastArg ¶
type BoardcastArg struct { Ver int32 `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"` Operation int32 `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*BoardcastArg) Marshal ¶
func (m *BoardcastArg) Marshal() (data []byte, err error)
func (*BoardcastArg) ProtoMessage ¶
func (*BoardcastArg) ProtoMessage()
func (*BoardcastArg) Reset ¶
func (m *BoardcastArg) Reset()
func (*BoardcastArg) Size ¶
func (m *BoardcastArg) Size() (n int)
func (*BoardcastArg) String ¶
func (m *BoardcastArg) String() string
func (*BoardcastArg) Unmarshal ¶
func (m *BoardcastArg) Unmarshal(data []byte) error
type BoardcastRoomArg ¶
type BoardcastRoomArg struct { Ver int32 `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"` Operation int32 `protobuf:"varint,2,opt,name=operation,proto3" json:"operation,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` RoomId int32 `protobuf:"varint,4,opt,name=roomId,proto3" json:"roomId,omitempty"` }
func (*BoardcastRoomArg) Marshal ¶
func (m *BoardcastRoomArg) Marshal() (data []byte, err error)
func (*BoardcastRoomArg) MarshalTo ¶
func (m *BoardcastRoomArg) MarshalTo(data []byte) (n int, err error)
func (*BoardcastRoomArg) ProtoMessage ¶
func (*BoardcastRoomArg) ProtoMessage()
func (*BoardcastRoomArg) Reset ¶
func (m *BoardcastRoomArg) Reset()
func (*BoardcastRoomArg) Size ¶
func (m *BoardcastRoomArg) Size() (n int)
func (*BoardcastRoomArg) String ¶
func (m *BoardcastRoomArg) String() string
func (*BoardcastRoomArg) Unmarshal ¶
func (m *BoardcastRoomArg) Unmarshal(data []byte) error
type MPushMsgArg ¶
type MPushMsgArg struct { Keys []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"` Ver int32 `protobuf:"varint,2,opt,name=ver,proto3" json:"ver,omitempty"` Operation int32 `protobuf:"varint,3,opt,name=operation,proto3" json:"operation,omitempty"` Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*MPushMsgArg) Marshal ¶
func (m *MPushMsgArg) Marshal() (data []byte, err error)
func (*MPushMsgArg) ProtoMessage ¶
func (*MPushMsgArg) ProtoMessage()
func (*MPushMsgArg) Reset ¶
func (m *MPushMsgArg) Reset()
func (*MPushMsgArg) Size ¶
func (m *MPushMsgArg) Size() (n int)
func (*MPushMsgArg) String ¶
func (m *MPushMsgArg) String() string
func (*MPushMsgArg) Unmarshal ¶
func (m *MPushMsgArg) Unmarshal(data []byte) error
type MPushMsgReply ¶
type MPushMsgReply struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*MPushMsgReply) Marshal ¶
func (m *MPushMsgReply) Marshal() (data []byte, err error)
func (*MPushMsgReply) ProtoMessage ¶
func (*MPushMsgReply) ProtoMessage()
func (*MPushMsgReply) Reset ¶
func (m *MPushMsgReply) Reset()
func (*MPushMsgReply) Size ¶
func (m *MPushMsgReply) Size() (n int)
func (*MPushMsgReply) String ¶
func (m *MPushMsgReply) String() string
func (*MPushMsgReply) Unmarshal ¶
func (m *MPushMsgReply) Unmarshal(data []byte) error
type MPushMsgsArg ¶
type MPushMsgsArg struct { Keys []string `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"` Vers []int32 `protobuf:"varint,2,rep,name=vers" json:"vers,omitempty"` Operations []int32 `protobuf:"varint,3,rep,name=operations" json:"operations,omitempty"` Msgs [][]byte `protobuf:"bytes,4,rep,name=msgs" json:"msgs,omitempty"` }
func (*MPushMsgsArg) Marshal ¶
func (m *MPushMsgsArg) Marshal() (data []byte, err error)
func (*MPushMsgsArg) ProtoMessage ¶
func (*MPushMsgsArg) ProtoMessage()
func (*MPushMsgsArg) Reset ¶
func (m *MPushMsgsArg) Reset()
func (*MPushMsgsArg) Size ¶
func (m *MPushMsgsArg) Size() (n int)
func (*MPushMsgsArg) String ¶
func (m *MPushMsgsArg) String() string
func (*MPushMsgsArg) Unmarshal ¶
func (m *MPushMsgsArg) Unmarshal(data []byte) error
type MPushMsgsReply ¶
type MPushMsgsReply struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*MPushMsgsReply) Marshal ¶
func (m *MPushMsgsReply) Marshal() (data []byte, err error)
func (*MPushMsgsReply) MarshalTo ¶
func (m *MPushMsgsReply) MarshalTo(data []byte) (n int, err error)
func (*MPushMsgsReply) ProtoMessage ¶
func (*MPushMsgsReply) ProtoMessage()
func (*MPushMsgsReply) Reset ¶
func (m *MPushMsgsReply) Reset()
func (*MPushMsgsReply) Size ¶
func (m *MPushMsgsReply) Size() (n int)
func (*MPushMsgsReply) String ¶
func (m *MPushMsgsReply) String() string
func (*MPushMsgsReply) Unmarshal ¶
func (m *MPushMsgsReply) Unmarshal(data []byte) error
type NoReply ¶
type NoReply struct { }
func (*NoReply) ProtoMessage ¶
func (*NoReply) ProtoMessage()
type PushMsgArg ¶
type PushMsgArg struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Ver int32 `protobuf:"varint,2,opt,name=ver,proto3" json:"ver,omitempty"` Operation int32 `protobuf:"varint,3,opt,name=operation,proto3" json:"operation,omitempty"` Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*PushMsgArg) Marshal ¶
func (m *PushMsgArg) Marshal() (data []byte, err error)
func (*PushMsgArg) ProtoMessage ¶
func (*PushMsgArg) ProtoMessage()
func (*PushMsgArg) Reset ¶
func (m *PushMsgArg) Reset()
func (*PushMsgArg) Size ¶
func (m *PushMsgArg) Size() (n int)
func (*PushMsgArg) String ¶
func (m *PushMsgArg) String() string
func (*PushMsgArg) Unmarshal ¶
func (m *PushMsgArg) Unmarshal(data []byte) error
type PushMsgsArg ¶
type PushMsgsArg struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Vers []int32 `protobuf:"varint,2,rep,name=vers" json:"vers,omitempty"` Operations []int32 `protobuf:"varint,3,rep,name=operations" json:"operations,omitempty"` Msgs [][]byte `protobuf:"bytes,4,rep,name=msgs" json:"msgs,omitempty"` }
func (*PushMsgsArg) Marshal ¶
func (m *PushMsgsArg) Marshal() (data []byte, err error)
func (*PushMsgsArg) ProtoMessage ¶
func (*PushMsgsArg) ProtoMessage()
func (*PushMsgsArg) Reset ¶
func (m *PushMsgsArg) Reset()
func (*PushMsgsArg) Size ¶
func (m *PushMsgsArg) Size() (n int)
func (*PushMsgsArg) String ¶
func (m *PushMsgsArg) String() string
func (*PushMsgsArg) Unmarshal ¶
func (m *PushMsgsArg) Unmarshal(data []byte) error
type PushMsgsReply ¶
type PushMsgsReply struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*PushMsgsReply) Marshal ¶
func (m *PushMsgsReply) Marshal() (data []byte, err error)
func (*PushMsgsReply) ProtoMessage ¶
func (*PushMsgsReply) ProtoMessage()
func (*PushMsgsReply) Reset ¶
func (m *PushMsgsReply) Reset()
func (*PushMsgsReply) Size ¶
func (m *PushMsgsReply) Size() (n int)
func (*PushMsgsReply) String ¶
func (m *PushMsgsReply) String() string
func (*PushMsgsReply) Unmarshal ¶
func (m *PushMsgsReply) Unmarshal(data []byte) error
type RoomsReply ¶
func (*RoomsReply) GetRooms ¶
func (m *RoomsReply) GetRooms() map[int32]bool
func (*RoomsReply) Marshal ¶
func (m *RoomsReply) Marshal() (data []byte, err error)
func (*RoomsReply) ProtoMessage ¶
func (*RoomsReply) ProtoMessage()
func (*RoomsReply) Reset ¶
func (m *RoomsReply) Reset()
func (*RoomsReply) Size ¶
func (m *RoomsReply) Size() (n int)
func (*RoomsReply) String ¶
func (m *RoomsReply) String() string
func (*RoomsReply) Unmarshal ¶
func (m *RoomsReply) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.