Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
router.proto
It has these top-level messages:
NoArg NoReply ConnArg ConnReply DisconnArg DisconnReply GetArg GetReply GetAllReply MGetArg MGetReply UserCountArg UserCountReply CountReply RoomCountArg RoomCountReply AllRoomCountReply
Index ¶
- type AllRoomCountReply
- func (m *AllRoomCountReply) GetCounter() map[int32]int32
- func (m *AllRoomCountReply) Marshal() (data []byte, err error)
- func (m *AllRoomCountReply) MarshalTo(data []byte) (n int, err error)
- func (*AllRoomCountReply) ProtoMessage()
- func (m *AllRoomCountReply) Reset()
- func (m *AllRoomCountReply) Size() (n int)
- func (m *AllRoomCountReply) String() string
- func (m *AllRoomCountReply) Unmarshal(data []byte) error
- type ConnArg
- type ConnReply
- type CountReply
- func (m *CountReply) Marshal() (data []byte, err error)
- func (m *CountReply) MarshalTo(data []byte) (n int, err error)
- func (*CountReply) ProtoMessage()
- func (m *CountReply) Reset()
- func (m *CountReply) Size() (n int)
- func (m *CountReply) String() string
- func (m *CountReply) Unmarshal(data []byte) error
- type DisconnArg
- func (m *DisconnArg) Marshal() (data []byte, err error)
- func (m *DisconnArg) MarshalTo(data []byte) (n int, err error)
- func (*DisconnArg) ProtoMessage()
- func (m *DisconnArg) Reset()
- func (m *DisconnArg) Size() (n int)
- func (m *DisconnArg) String() string
- func (m *DisconnArg) Unmarshal(data []byte) error
- type DisconnReply
- func (m *DisconnReply) Marshal() (data []byte, err error)
- func (m *DisconnReply) MarshalTo(data []byte) (n int, err error)
- func (*DisconnReply) ProtoMessage()
- func (m *DisconnReply) Reset()
- func (m *DisconnReply) Size() (n int)
- func (m *DisconnReply) String() string
- func (m *DisconnReply) Unmarshal(data []byte) error
- type GetAllReply
- func (m *GetAllReply) GetSessions() []*GetReply
- func (m *GetAllReply) Marshal() (data []byte, err error)
- func (m *GetAllReply) MarshalTo(data []byte) (n int, err error)
- func (*GetAllReply) ProtoMessage()
- func (m *GetAllReply) Reset()
- func (m *GetAllReply) Size() (n int)
- func (m *GetAllReply) String() string
- func (m *GetAllReply) Unmarshal(data []byte) error
- type GetArg
- type GetReply
- type MGetArg
- type MGetReply
- func (m *MGetReply) GetSessions() []*GetReply
- func (m *MGetReply) Marshal() (data []byte, err error)
- func (m *MGetReply) MarshalTo(data []byte) (n int, err error)
- func (*MGetReply) ProtoMessage()
- func (m *MGetReply) Reset()
- func (m *MGetReply) Size() (n int)
- func (m *MGetReply) String() string
- func (m *MGetReply) Unmarshal(data []byte) error
- type NoArg
- type NoReply
- type RoomCountArg
- func (m *RoomCountArg) Marshal() (data []byte, err error)
- func (m *RoomCountArg) MarshalTo(data []byte) (n int, err error)
- func (*RoomCountArg) ProtoMessage()
- func (m *RoomCountArg) Reset()
- func (m *RoomCountArg) Size() (n int)
- func (m *RoomCountArg) String() string
- func (m *RoomCountArg) Unmarshal(data []byte) error
- type RoomCountReply
- func (m *RoomCountReply) Marshal() (data []byte, err error)
- func (m *RoomCountReply) MarshalTo(data []byte) (n int, err error)
- func (*RoomCountReply) ProtoMessage()
- func (m *RoomCountReply) Reset()
- func (m *RoomCountReply) Size() (n int)
- func (m *RoomCountReply) String() string
- func (m *RoomCountReply) Unmarshal(data []byte) error
- type UserCountArg
- func (m *UserCountArg) Marshal() (data []byte, err error)
- func (m *UserCountArg) MarshalTo(data []byte) (n int, err error)
- func (*UserCountArg) ProtoMessage()
- func (m *UserCountArg) Reset()
- func (m *UserCountArg) Size() (n int)
- func (m *UserCountArg) String() string
- func (m *UserCountArg) Unmarshal(data []byte) error
- type UserCountReply
- func (m *UserCountReply) Marshal() (data []byte, err error)
- func (m *UserCountReply) MarshalTo(data []byte) (n int, err error)
- func (*UserCountReply) ProtoMessage()
- func (m *UserCountReply) Reset()
- func (m *UserCountReply) Size() (n int)
- func (m *UserCountReply) String() string
- func (m *UserCountReply) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllRoomCountReply ¶
type AllRoomCountReply struct {
Counter map[int32]int32 `` /* 150-byte string literal not displayed */
}
func (*AllRoomCountReply) GetCounter ¶
func (m *AllRoomCountReply) GetCounter() map[int32]int32
func (*AllRoomCountReply) Marshal ¶
func (m *AllRoomCountReply) Marshal() (data []byte, err error)
func (*AllRoomCountReply) MarshalTo ¶
func (m *AllRoomCountReply) MarshalTo(data []byte) (n int, err error)
func (*AllRoomCountReply) ProtoMessage ¶
func (*AllRoomCountReply) ProtoMessage()
func (*AllRoomCountReply) Reset ¶
func (m *AllRoomCountReply) Reset()
func (*AllRoomCountReply) Size ¶
func (m *AllRoomCountReply) Size() (n int)
func (*AllRoomCountReply) String ¶
func (m *AllRoomCountReply) String() string
func (*AllRoomCountReply) Unmarshal ¶
func (m *AllRoomCountReply) Unmarshal(data []byte) error
type ConnArg ¶
type ConnArg struct { UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` Server int32 `protobuf:"varint,2,opt,name=server,proto3" json:"server,omitempty"` RoomId int32 `protobuf:"varint,3,opt,name=roomId,proto3" json:"roomId,omitempty"` }
func (*ConnArg) ProtoMessage ¶
func (*ConnArg) ProtoMessage()
type ConnReply ¶
type ConnReply struct {
Seq int32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
func (*ConnReply) ProtoMessage ¶
func (*ConnReply) ProtoMessage()
type CountReply ¶
type CountReply struct {
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*CountReply) Marshal ¶
func (m *CountReply) Marshal() (data []byte, err error)
func (*CountReply) ProtoMessage ¶
func (*CountReply) ProtoMessage()
func (*CountReply) Reset ¶
func (m *CountReply) Reset()
func (*CountReply) Size ¶
func (m *CountReply) Size() (n int)
func (*CountReply) String ¶
func (m *CountReply) String() string
func (*CountReply) Unmarshal ¶
func (m *CountReply) Unmarshal(data []byte) error
type DisconnArg ¶
type DisconnArg struct { UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` Seq int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` RoomId int32 `protobuf:"varint,3,opt,name=roomId,proto3" json:"roomId,omitempty"` }
func (*DisconnArg) Marshal ¶
func (m *DisconnArg) Marshal() (data []byte, err error)
func (*DisconnArg) ProtoMessage ¶
func (*DisconnArg) ProtoMessage()
func (*DisconnArg) Reset ¶
func (m *DisconnArg) Reset()
func (*DisconnArg) Size ¶
func (m *DisconnArg) Size() (n int)
func (*DisconnArg) String ¶
func (m *DisconnArg) String() string
func (*DisconnArg) Unmarshal ¶
func (m *DisconnArg) Unmarshal(data []byte) error
type DisconnReply ¶
type DisconnReply struct {
Has bool `protobuf:"varint,1,opt,name=has,proto3" json:"has,omitempty"`
}
func (*DisconnReply) Marshal ¶
func (m *DisconnReply) Marshal() (data []byte, err error)
func (*DisconnReply) ProtoMessage ¶
func (*DisconnReply) ProtoMessage()
func (*DisconnReply) Reset ¶
func (m *DisconnReply) Reset()
func (*DisconnReply) Size ¶
func (m *DisconnReply) Size() (n int)
func (*DisconnReply) String ¶
func (m *DisconnReply) String() string
func (*DisconnReply) Unmarshal ¶
func (m *DisconnReply) Unmarshal(data []byte) error
type GetAllReply ¶
type GetAllReply struct { UserIds []int64 `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"` Sessions []*GetReply `protobuf:"bytes,2,rep,name=sessions" json:"sessions,omitempty"` }
func (*GetAllReply) GetSessions ¶
func (m *GetAllReply) GetSessions() []*GetReply
func (*GetAllReply) Marshal ¶
func (m *GetAllReply) Marshal() (data []byte, err error)
func (*GetAllReply) ProtoMessage ¶
func (*GetAllReply) ProtoMessage()
func (*GetAllReply) Reset ¶
func (m *GetAllReply) Reset()
func (*GetAllReply) Size ¶
func (m *GetAllReply) Size() (n int)
func (*GetAllReply) String ¶
func (m *GetAllReply) String() string
func (*GetAllReply) Unmarshal ¶
func (m *GetAllReply) Unmarshal(data []byte) error
type GetArg ¶
type GetArg struct {
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (*GetArg) ProtoMessage ¶
func (*GetArg) ProtoMessage()
type GetReply ¶
type GetReply struct { Seqs []int32 `protobuf:"varint,1,rep,name=seqs" json:"seqs,omitempty"` Servers []int32 `protobuf:"varint,2,rep,name=servers" json:"servers,omitempty"` }
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
type MGetArg ¶
type MGetArg struct {
UserIds []int64 `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"`
}
func (*MGetArg) ProtoMessage ¶
func (*MGetArg) ProtoMessage()
type MGetReply ¶
type MGetReply struct { UserIds []int64 `protobuf:"varint,1,rep,name=userIds" json:"userIds,omitempty"` Sessions []*GetReply `protobuf:"bytes,2,rep,name=sessions" json:"sessions,omitempty"` }
func (*MGetReply) GetSessions ¶
func (*MGetReply) ProtoMessage ¶
func (*MGetReply) ProtoMessage()
type NoReply ¶
type NoReply struct { }
func (*NoReply) ProtoMessage ¶
func (*NoReply) ProtoMessage()
type RoomCountArg ¶
type RoomCountArg struct {
RoomId int32 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId,omitempty"`
}
func (*RoomCountArg) Marshal ¶
func (m *RoomCountArg) Marshal() (data []byte, err error)
func (*RoomCountArg) ProtoMessage ¶
func (*RoomCountArg) ProtoMessage()
func (*RoomCountArg) Reset ¶
func (m *RoomCountArg) Reset()
func (*RoomCountArg) Size ¶
func (m *RoomCountArg) Size() (n int)
func (*RoomCountArg) String ¶
func (m *RoomCountArg) String() string
func (*RoomCountArg) Unmarshal ¶
func (m *RoomCountArg) Unmarshal(data []byte) error
type RoomCountReply ¶
type RoomCountReply struct {
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*RoomCountReply) Marshal ¶
func (m *RoomCountReply) Marshal() (data []byte, err error)
func (*RoomCountReply) MarshalTo ¶
func (m *RoomCountReply) MarshalTo(data []byte) (n int, err error)
func (*RoomCountReply) ProtoMessage ¶
func (*RoomCountReply) ProtoMessage()
func (*RoomCountReply) Reset ¶
func (m *RoomCountReply) Reset()
func (*RoomCountReply) Size ¶
func (m *RoomCountReply) Size() (n int)
func (*RoomCountReply) String ¶
func (m *RoomCountReply) String() string
func (*RoomCountReply) Unmarshal ¶
func (m *RoomCountReply) Unmarshal(data []byte) error
type UserCountArg ¶
type UserCountArg struct {
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (*UserCountArg) Marshal ¶
func (m *UserCountArg) Marshal() (data []byte, err error)
func (*UserCountArg) ProtoMessage ¶
func (*UserCountArg) ProtoMessage()
func (*UserCountArg) Reset ¶
func (m *UserCountArg) Reset()
func (*UserCountArg) Size ¶
func (m *UserCountArg) Size() (n int)
func (*UserCountArg) String ¶
func (m *UserCountArg) String() string
func (*UserCountArg) Unmarshal ¶
func (m *UserCountArg) Unmarshal(data []byte) error
type UserCountReply ¶
type UserCountReply struct {
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*UserCountReply) Marshal ¶
func (m *UserCountReply) Marshal() (data []byte, err error)
func (*UserCountReply) MarshalTo ¶
func (m *UserCountReply) MarshalTo(data []byte) (n int, err error)
func (*UserCountReply) ProtoMessage ¶
func (*UserCountReply) ProtoMessage()
func (*UserCountReply) Reset ¶
func (m *UserCountReply) Reset()
func (*UserCountReply) Size ¶
func (m *UserCountReply) Size() (n int)
func (*UserCountReply) String ¶
func (m *UserCountReply) String() string
func (*UserCountReply) Unmarshal ¶
func (m *UserCountReply) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.