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 PutArg PutReply DelArg DelReply DelServerArg GetArg GetReply GetAllReply MGetArg MGetReply UserCountArg UserCountReply CountReply RoomCountArg RoomCountReply AllRoomCountReply AllServerCountReply
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 AllServerCountReply
- func (m *AllServerCountReply) GetCounter() map[int32]int32
- func (m *AllServerCountReply) Marshal() (data []byte, err error)
- func (m *AllServerCountReply) MarshalTo(data []byte) (n int, err error)
- func (*AllServerCountReply) ProtoMessage()
- func (m *AllServerCountReply) Reset()
- func (m *AllServerCountReply) Size() (n int)
- func (m *AllServerCountReply) String() string
- func (m *AllServerCountReply) Unmarshal(data []byte) error
- 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 DelArg
- type DelReply
- type DelServerArg
- func (m *DelServerArg) Marshal() (data []byte, err error)
- func (m *DelServerArg) MarshalTo(data []byte) (n int, err error)
- func (*DelServerArg) ProtoMessage()
- func (m *DelServerArg) Reset()
- func (m *DelServerArg) Size() (n int)
- func (m *DelServerArg) String() string
- func (m *DelServerArg) 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 PutArg
- type PutReply
- 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 AllServerCountReply ¶
type AllServerCountReply struct {
Counter map[int32]int32 `` /* 150-byte string literal not displayed */
}
func (*AllServerCountReply) GetCounter ¶
func (m *AllServerCountReply) GetCounter() map[int32]int32
func (*AllServerCountReply) Marshal ¶
func (m *AllServerCountReply) Marshal() (data []byte, err error)
func (*AllServerCountReply) MarshalTo ¶
func (m *AllServerCountReply) MarshalTo(data []byte) (n int, err error)
func (*AllServerCountReply) ProtoMessage ¶
func (*AllServerCountReply) ProtoMessage()
func (*AllServerCountReply) Reset ¶
func (m *AllServerCountReply) Reset()
func (*AllServerCountReply) Size ¶
func (m *AllServerCountReply) Size() (n int)
func (*AllServerCountReply) String ¶
func (m *AllServerCountReply) String() string
func (*AllServerCountReply) Unmarshal ¶
func (m *AllServerCountReply) Unmarshal(data []byte) error
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 DelArg ¶
type DelArg 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 (*DelArg) ProtoMessage ¶
func (*DelArg) ProtoMessage()
type DelReply ¶
type DelReply struct {
Has bool `protobuf:"varint,1,opt,name=has,proto3" json:"has,omitempty"`
}
func (*DelReply) ProtoMessage ¶
func (*DelReply) ProtoMessage()
type DelServerArg ¶
type DelServerArg struct {
Server int32 `protobuf:"varint,1,opt,name=server,proto3" json:"server,omitempty"`
}
func (*DelServerArg) Marshal ¶
func (m *DelServerArg) Marshal() (data []byte, err error)
func (*DelServerArg) ProtoMessage ¶
func (*DelServerArg) ProtoMessage()
func (*DelServerArg) Reset ¶
func (m *DelServerArg) Reset()
func (*DelServerArg) Size ¶
func (m *DelServerArg) Size() (n int)
func (*DelServerArg) String ¶
func (m *DelServerArg) String() string
func (*DelServerArg) Unmarshal ¶
func (m *DelServerArg) 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 PutArg ¶
type PutArg 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 (*PutArg) ProtoMessage ¶
func (*PutArg) ProtoMessage()
type PutReply ¶
type PutReply struct {
Seq int32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
}
func (*PutReply) ProtoMessage ¶
func (*PutReply) 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.