Documentation ¶
Index ¶
- func AddSpace(s string) string
- func CalcPooledStdDev(bundle1, bundle2 *StatsBundle) float64
- func CalcStdDevFromQuantityBuckets(quantityBuckets map[int]int, times int, isUnbiased bool) float64
- func CalcTScore(bundle1, bundle2 *StatsBundle) float64
- func ExtractIP(ctx *fiber.Ctx) string
- func GetDayNum(t *time.Time, server string) int
- func GetDayStartTime(t *time.Time, server string) int64
- func GetDayStartTimestampFromDayNum(dayNum int, server string) int64
- func GetDropMatrixElementsMap(elements []*model.DropMatrixElement, hasRangeID bool) map[int]map[int]map[int]*model.DropMatrixElement
- func GetIntersection(timeRange1 *model.TimeRange, timeRange2 *model.TimeRange) *model.TimeRange
- func GetStageIdItemIdMapFromDropInfos(dropInfos []*model.DropInfo) map[int][]int
- func GetStageIdsFromDropInfos(dropInfos []*model.DropInfo) []int
- func GetTimeStampInServer(t *time.Time, server string) int64
- func IsASCII(s string) bool
- func IsInt(s string) bool
- func Must[T any](v T, err error) T
- func NewValidator() *validator.Validate
- func NonNullString(s string) bool
- func RoundFloat64(f float64, n int) float64
- type StatsBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSpace ¶
AddSpace Adds a space, if not present, between ASCII Characters and Non-ASCII Characters. Notice that Non-ASCII characters could be multibyte unicode sequence. For example, "中文english" -> "中文 english"
func CalcPooledStdDev ¶
func CalcPooledStdDev(bundle1, bundle2 *StatsBundle) float64
func CalcTScore ¶
func CalcTScore(bundle1, bundle2 *StatsBundle) float64
func GetDayStartTime ¶
floor to 12am of the day of the given time and given server
func GetDropMatrixElementsMap ¶
func GetDropMatrixElementsMap(elements []*model.DropMatrixElement, hasRangeID bool) map[int]map[int]map[int]*model.DropMatrixElement
func GetIntersection ¶
func NewValidator ¶
func NewValidator() *validator.Validate
func NonNullString ¶
func RoundFloat64 ¶
Types ¶
type StatsBundle ¶
func CombineTwoBundles ¶
func CombineTwoBundles(bundle1, bundle2 *StatsBundle) *StatsBundle
Source Files ¶
Click to show internal directories.
Click to hide internal directories.