Documentation
¶
Index ¶
- func CreateHalls(hm nexSpace.HallManager, hallData []*dbConf.HallData)
- func CreateHistoryResult(roomType int, rd *dbConf.RoomData) (interface{}, error)
- func CreateRoom(rm nexSpace.RoomManager, rh *roomCtrl.Controller, data *RoomField) (entity.Room, error)
- func CreateRooms(rm nexSpace.RoomManager, rCtrl *roomCtrl.Controller, ...) ([]entity.Room, error)
- func CreateTypeData(boot int, round int64, limitation interface{}) (interface{}, error)
- func GetDealer(dealerID int, dealers []*dbConf.Dealer) (roomConf.Dealer, error)
- func GetLimitation(limitationID int, limitations []*config.TransferredLimitation) interface{}
- func QueryDealers(bp *control.DBController, method, path string) ([]*dbConf.Dealer, error)
- func QueryHalls(bp *control.DBController, method, path string) ([]*dbConf.HallData, error)
- func QueryLimitations(bp *control.DBController, method, path string) ([]*dbConf.Limitation, error)
- func QueryRooms(bp *control.DBController, method, path string) ([]*dbConf.RoomData, error)
- func SetHallRoom(halls []entity.Hall, rooms []entity.Room)
- func TransferLimitations(limitations []*dbConf.Limitation) (data []*config.TransferredLimitation, err error)
- type RoomField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHalls ¶
func CreateHalls(hm nexSpace.HallManager, hallData []*dbConf.HallData)
func CreateHistoryResult ¶
func CreateRoom ¶
func CreateRoom(rm nexSpace.RoomManager, rh *roomCtrl.Controller, data *RoomField) (entity.Room, error)
func CreateRooms ¶
func CreateRooms(rm nexSpace.RoomManager, rCtrl *roomCtrl.Controller, roomData []*dbConf.RoomData, transferredLims []*config.TransferredLimitation, dealers []*dbConf.Dealer) ([]entity.Room, error)
createRooms
func CreateTypeData ¶
func GetLimitation ¶
func GetLimitation(limitationID int, limitations []*config.TransferredLimitation) interface{}
func QueryDealers ¶
func QueryHalls ¶
func QueryLimitations ¶
func QueryLimitations(bp *control.DBController, method, path string) ([]*dbConf.Limitation, error)
func QueryRooms ¶
func TransferLimitations ¶
func TransferLimitations(limitations []*dbConf.Limitation) (data []*config.TransferredLimitation, err error)
Types ¶
type RoomField ¶
type RoomField struct {
HallID uint `json:"hallID"`
RoomID uint `json:"roomID"`
Name string `json:"name"`
Type uint `json:"type"`
Active uint `json:"active"`
HLSURL string `json:"hlsURL"`
Dealer roomConf.Dealer
BetCoundDown uint `json:"betCoundDown"`
TypeData interface{} //type data for different type room, bet limit , boot, round....
ResultHistory interface{} // result history
Boot int64
Round int64
}
room
Click to show internal directories.
Click to hide internal directories.