v1

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stat

func Stat(w http.ResponseWriter, r *http.Request)

Types

type DistStat

type DistStat struct {
	// SpinRequest
	GameName string `json:"game_name"`
	BetUnits []int  `json:"bet_units"`
	BetMode  int    `json:"bet_mode"`
	BetMult  int    `json:"bet_mult"`
	Bet      int    `json:"bet"`
	// ResultRecord
	TotalWins []int `json:"total_wins"`
	BaseWins  []int `json:"base_wins"`
	FreeWins  []int `json:"free_wins"`
	Triggers  []int `json:"triggers"`
}

type SimHandler

type SimHandler struct {
	Problab *problab.Problab
	// contains filtered or unexported fields
}

func NewSimHandler

func NewSimHandler(scfg *svrcfg.SvrCfg) (*SimHandler, error)

func (*SimHandler) Sim

func (sh *SimHandler) Sim(w http.ResponseWriter, q *http.Request)

func (*SimHandler) SimByJson added in v0.3.0

func (sh *SimHandler) SimByJson(w http.ResponseWriter, r *http.Request)

SimByJson 傳入 JSON設定格式 以及希望模擬的局數

func (*SimHandler) SimPlayers

func (sh *SimHandler) SimPlayers(w http.ResponseWriter, r *http.Request)

type SpinHandler

type SpinHandler struct {
	// contains filtered or unexported fields
}

func NewSpinHandler

func NewSpinHandler(sCfg *svrcfg.SvrCfg) (*SpinHandler, error)

func (*SpinHandler) Health added in v0.3.0

func (s *SpinHandler) Health(w http.ResponseWriter, r *http.Request)

func (*SpinHandler) PoolMetrics added in v0.3.0

func (s *SpinHandler) PoolMetrics(w http.ResponseWriter, r *http.Request)

func (*SpinHandler) Spin

func (s *SpinHandler) Spin(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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