Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertEMarket(m Market) string
- func ParseUrl(side *pb.SurebetSide) (err error)
- type Handler
- func (h *Handler) AccId() int
- func (h *Handler) CalcHandicapMiddleMargin(ctx context.Context, eventId string, period int) (middleMarginAvg float64, err error)
- func (h *Handler) CalcTotalMiddleMargin(ctx context.Context, eventId string, period int) (middleMarginAvg float64, err error)
- func (h *Handler) CheckLine(ctx context.Context, sb *pb.Surebet) error
- func (h *Handler) Close()
- func (h *Handler) ECheck(ctx context.Context, sb *pb.Surebet, m Market)
- func (h *Handler) EPlaceBet(ctx context.Context, sb *pb.Surebet)
- func (h *Handler) FindEvent(ctx context.Context, line *pb.SurebetSide) error
- func (h *Handler) FindLeagueIdByName(ctx context.Context, line *pb.SurebetSide) error
- func (h *Handler) GetCurrency(sb *pb.Surebet) float64
- func (h *Handler) GetLock(sb *pb.Surebet) bool
- func (h *Handler) GetResults(ctx context.Context) ([]pb.BetResult, error)
- func (h *Handler) GetTicket(id int64) (Ticket, error)
- func (h *Handler) ReleaseCheck(ctx context.Context, sb *pb.Surebet)
- func (h *Handler) SetTicket(id int64, t Ticket)
- type Market
- type Ticket
Constants ¶
View Source
const ( SPREAD = "SPREAD" MONEYLINE = "MONEYLINE" TOTAL_POINTS = "TOTAL_POINTS" TEAM_TOTAL_POINTS = "TEAM_TOTAL_POINTS" OVER = "OVER" UNDER = "UNDER" Team1 = "Team1" Team2 = "Team2" Draw = "Draw" )
View Source
const LockTimeOut = time.Second * 28
Variables ¶
View Source
var BettingStatus bool
View Source
var EMarketMap = map[string]string{MONEYLINE: "m", SPREAD: "s", TOTAL_POINTS: "ou", TEAM_TOTAL_POINTS: "tt"}
View Source
var ETeamMap = map[string]string{Team1: "home", Team2: "away"}
View Source
var ETicketMap sync.Map
Functions ¶
func ConvertEMarket ¶
func ParseUrl ¶
func ParseUrl(side *pb.SurebetSide) (err error)
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CalcHandicapMiddleMargin ¶
func (*Handler) CalcTotalMiddleMargin ¶
func (*Handler) FindLeagueIdByName ¶
func (*Handler) GetResults ¶
Click to show internal directories.
Click to hide internal directories.