Documentation
¶
Index ¶
- Constants
- func CreateLobby(entity interface{}) error
- func CreateRoom(entity interface{}, lobbyid string) error
- func Cxt() context.Context
- func DeleteLobby(filter map[string]interface{}) error
- func DeleteRoom(filter map[string]interface{}, lobbyid string) error
- func DeleteRooms(filter map[string]interface{}, lobbyid string) error
- func FindBalanceNode(lobbyid string) (string, error)
- func FindBalanceRoom(entity interface{}, lobbyid string) error
- func FindLobby(filter map[string]interface{}, entity interface{}) error
- func FindLobbyRoomsPeerCount(lobbyid string) (int, error)
- func FindRoom(filter map[string]interface{}, entity interface{}, lobbyid string) error
- func FindRooms(filter map[string]interface{}, entities interface{}, lobbyid string) error
- func InitMongo(mongoConf string) error
- func LobbyCol() *mongo.Collection
- func RoomCol(lobbyid string) *mongo.Collection
- func UpdateLobby(filter map[string]interface{}, data map[string]map[string]interface{}) error
- func UpdateRoom(entity interface{}, filter map[string]interface{}, lobbyid string) error
- type BalanceResult
Constants ¶
View Source
const ( LOBBY_COLLECT string = "__lobbys" ROOM_COLLECT = "__rooms" )
Variables ¶
This section is empty.
Functions ¶
func CreateLobby ¶
func CreateLobby(entity interface{}) error
func CreateRoom ¶
func DeleteLobby ¶
func DeleteRoom ¶
func DeleteRooms ¶
func FindBalanceNode ¶
func FindBalanceRoom ¶
func FindLobbyRoomsPeerCount ¶
func LobbyCol ¶
func LobbyCol() *mongo.Collection
func RoomCol ¶
func RoomCol(lobbyid string) *mongo.Collection
func UpdateLobby ¶
func UpdateRoom ¶
Types ¶
type BalanceResult ¶
Click to show internal directories.
Click to hide internal directories.