Documentation ¶
Index ¶
- type Cache
- func (s2 *Cache) AddFeature(name string, feature *Feature)
- func (s2 *Cache) GetFeature(name string) *Feature
- func (s2 *Cache) HasFeature(name string) bool
- func (s2 *Cache) ProcStatsForeachTrigger(name string, runtimes int, wins int64)
- func (s2 *Cache) ProcStatsOnEnding(win int64)
- func (s2 *Cache) ProcStatsRootTrigger(name string, wins int64, isEnding bool)
- func (s2 *Cache) ProcStatsTrigger(name string)
- func (s2 *Cache) ProcStatsWins(name string, win int64)
- type Feature
- type Option
- type Options
- type Stats
- func (s2 *Stats) AddFeature(name string, feature *Feature)
- func (s2 *Stats) ExportExcel() ([]byte, error)
- func (s2 *Stats) GetRunTimes(name string) int64
- func (s2 *Stats) Merge(src *Stats)
- func (s2 *Stats) PushBet(bet int)
- func (s2 *Stats) PushCache(cache *Cache)
- func (s2 *Stats) SaveExcel(fn string) error
- func (s2 *Stats) Start()
- func (s2 *Stats) ToJson() string
- func (s2 *Stats) WaitEnding()
- type StatsRootTrigger
- type StatsTrigger
- type StatsWins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v0.13.99
func (*Cache) AddFeature ¶ added in v0.13.99
func (*Cache) GetFeature ¶ added in v0.13.99
func (*Cache) HasFeature ¶ added in v0.13.99
func (*Cache) ProcStatsForeachTrigger ¶ added in v0.13.115
func (*Cache) ProcStatsOnEnding ¶ added in v0.13.115
func (*Cache) ProcStatsRootTrigger ¶ added in v0.13.99
func (*Cache) ProcStatsTrigger ¶ added in v0.13.99
func (*Cache) ProcStatsWins ¶ added in v0.13.99
type Feature ¶
type Feature struct { Parent string `json:"parent"` RootTrigger *StatsRootTrigger `json:"rootTrigger"` // 只有respin和foreach才需要这个 Trigger *StatsTrigger `json:"trigger"` // 普通的trigger,如果在respin或foreach下面,则需要配合它们才能得到正确的统计 Wins *StatsWins `json:"wins"` // wins }
func NewFeature ¶
type Stats ¶
type Stats struct { MapStats map[string]*Feature `json:"mapStats"` TotalBet int64 `json:"totalBet"` TotalWins int64 `json:"totalWins"` BetTimes int64 `json:"betTimes"` MaxWins int64 `json:"maxWins"` MaxWinTimes int64 `json:"maxWinTimes"` BetEndingTimes int64 `json:"-"` Components []string `json:"components"` // contains filtered or unexported fields }
func (*Stats) AddFeature ¶
func (*Stats) ExportExcel ¶ added in v0.13.107
func (*Stats) GetRunTimes ¶ added in v0.13.99
func (*Stats) WaitEnding ¶
func (s2 *Stats) WaitEnding()
type StatsRootTrigger ¶ added in v0.13.99
type StatsRootTrigger struct { RunTimes int64 `json:"runTimes"` TriggerTimes int64 `json:"triggerTimes"` TotalWins int64 `json:"totalWins"` IsStarted bool `json:"-"` }
func NewStatsRootTrigger ¶ added in v0.13.103
func NewStatsRootTrigger() *StatsRootTrigger
func (*StatsRootTrigger) Merge ¶ added in v0.13.99
func (trigger *StatsRootTrigger) Merge(src *StatsRootTrigger)
type StatsTrigger ¶
type StatsTrigger struct {
TriggerTimes int64 `json:"triggerTimes"`
}
func NewStatsTrigger ¶ added in v0.13.103
func NewStatsTrigger() *StatsTrigger
func (*StatsTrigger) Merge ¶
func (trigger *StatsTrigger) Merge(src *StatsTrigger)
Click to show internal directories.
Click to hide internal directories.