Versions in this module Expand all Collapse all v0 v0.0.0 Nov 28, 2024 Changes in this version + var Cfg = cfg.Cfg + var Clubs = map[string]uint64 + var ErrAlienServer = errors.New("server is not slotopol server") + var Users = map[string]*User + func DoReq[Tr any](req *http.Request) (ret Tr, status int, err error) + func HttpGet[Tr any](path string, token string, arg url.Values) (ret Tr, status int, err error) + func HttpPost[Ta, Tr any](path string, token string, arg *Ta) (ret Tr, status int, err error) + func ReqAccessSet(cid, uid uint64, al AL) (err error) + func ReqPing() (err error) + func ReqRtpGet(cid, uid uint64, all bool) (mrtp float64, err error) + func ReqRtpSet(cid, uid uint64, mrtp float64) (err error) + func ReqWalletAdd(cid, uid uint64, sum float64) (wallet float64, err error) + func ReqWalletGet(cid, uid uint64) (wallet float64, err error) + type AL uint + const ALadmin + const ALall + const ALclub + const ALgame + const ALmem + const ALuser + func ReqAccessGet(cid, uid uint64, all bool) (al AL, err error) + type AjaxErr struct + Code int + UID uint64 + What string + func (err AjaxErr) Error() string + type ArgAccessGet struct + All bool + CID uint64 + UID uint64 + XMLName xml.Name + type ArgAccessSet struct + Access AL + CID uint64 + UID uint64 + XMLName xml.Name + type ArgClubCashin struct + BankSum float64 + CID uint64 + FundSum float64 + LockSum float64 + XMLName xml.Name + type ArgClubInfo struct + CID uint64 + XMLName xml.Name + type ArgPropGet struct + CID uint64 + UID uint64 + XMLName xml.Name + type ArgRtpGet struct + All bool + CID uint64 + UID uint64 + XMLName xml.Name + type ArgRtpSet struct + CID uint64 + MRTP float64 + UID uint64 + XMLName xml.Name + type ArgSignIn struct + Code uint32 + Email string + HS256 string + Secret string + SigTime string + UID uint64 + XMLName xml.Name + type ArgSignIs struct + Email string + UID uint64 + XMLName xml.Name + type ArgUserIs struct + List []useritem + XMLName xml.Name + type ArgWalletAdd struct + CID uint64 + Sum float64 + UID uint64 + XMLName xml.Name + type AuthResp struct + Access string + Email string + Expire string + Living string + Refrsh string + UID uint64 + XMLName xml.Name + var Admin AuthResp + func ReqRefresh() (ret AuthResp, err error) + func ReqSignIn(email, secret string) (ret AuthResp, err error) + type Props struct + Access AL + MRTP float64 + Wallet float64 + func ReqPropGet(cid, uid uint64) (p Props, err error) + func (p Props) Expired() bool + type RetAccessGet struct + Access AL + XMLName xml.Name + type RetClubCashin struct + BID uint64 + Bank float64 + Fund float64 + Lock float64 + XMLName xml.Name + func ClubCashin(cid uint64, bsum, fsum, lsum float64) (ret RetClubCashin, err error) + type RetClubInfo struct + Bank float64 + Fund float64 + Lock float64 + MRTP float64 + Name string + Rate float64 + XMLName xml.Name + func ReqClubInfo(cid uint64) (ret RetClubInfo, err error) + type RetClubList struct + List []clubitem + XMLName xml.Name + func ReqClubList() (ret RetClubList, err error) + type RetPropGet struct + Access AL + MRTP float64 + Wallet float64 + XMLName xml.Name + type RetRtpGet struct + MRTP float64 + XMLName xml.Name + type RetSignIs struct + Email string + Name string + UID uint64 + XMLName xml.Name + type RetUserIs struct + List []useritem + XMLName xml.Name + type RetWalletGet struct + Wallet float64 + XMLName xml.Name + type User struct + Email string + Name string + UID uint64 + func ReqSignIs(email string) (user User, status int, err error) + func ReqUserIs(emails []string) (users []User, err error) + func (u *User) GetProps(cid uint64) (p Props, ok bool) + func (u *User) SetProps(cid uint64, p Props)