method

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHalls

func CreateHalls(hm nexSpace.HallManager, hallData []*dbConf.HallData)

func CreateHistoryResult

func CreateHistoryResult(roomType int, rd *dbConf.RoomData) (interface{}, error)

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 CreateTypeData(boot int, round int64, limitation interface{}) (interface{}, error)

func GetDealer

func GetDealer(dealerID int, dealers []*dbConf.Dealer) (roomConf.Dealer, error)

func GetLimitation

func GetLimitation(limitationID int, limitations []*config.TransferredLimitation) interface{}

func QueryDealers

func QueryDealers(bp *control.DBController, method, path string) ([]*dbConf.Dealer, error)

func QueryHalls

func QueryHalls(bp *control.DBController, method, path string) ([]*dbConf.HallData, error)

func QueryLimitations

func QueryLimitations(bp *control.DBController, method, path string) ([]*dbConf.Limitation, error)

func QueryRooms

func QueryRooms(bp *control.DBController, method, path string) ([]*dbConf.RoomData, error)

func SetHallRoom

func SetHallRoom(halls []entity.Hall, rooms []entity.Room)

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

func CreateRoomParameters

func CreateRoomParameters(data *dbConf.RoomData, typeData interface{}, dealer roomConf.Dealer, historyResult interface{}) *RoomField

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL