Documentation ¶
Index ¶
- func Init(recaptchaSecret, dbAddr, dbUser, dbPass, dbName string, ctx *zap.Logger) error
- func RegisterConfirm(data RegisterConfirmRequest, ip string, ctx *zap.Logger) error
- func RoundActive(ctx *zap.Logger) (r []vbcore.Round, err error)
- func RoundJoin(userID int, roundID string, ctx *zap.Logger) error
- func RoundentryActive(userID int, ctx *zap.Logger) (response []vbcore.Roundentry, err error)
- func RoundentryConnectinfo(authtoken string, ctx *zap.Logger) (response *vbcore.RoundentryConnectinfo, err error)
- func RoundentryWatchresolve(watchtoken string, ctx *zap.Logger) (websocket string, err error)
- func UserGet(userID int, ctx *zap.Logger) (*vbcore.SafeUser, error)
- func UserGetPublicByID(userID string, ctx *zap.Logger) (user *vbcore.SafeUser, err error)
- func UserGetPublicByUsername(username string, ctx *zap.Logger) (user *vbcore.SafeUser, err error)
- func UserUpdate(userID int, newUser *vbcore.User, msg string, ctx *zap.Logger) error
- type RegisterConfirmRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfirm ¶
func RegisterConfirm(data RegisterConfirmRequest, ip string, ctx *zap.Logger) error
RegisterConfirm registers the user specified by the user object
func RoundActive ¶
RoundActive returns a list of all rounds that are currently active
func RoundentryActive ¶
RoundentryActive loads all roundentry infos for a given user
func RoundentryConnectinfo ¶
func RoundentryConnectinfo(authtoken string, ctx *zap.Logger) (response *vbcore.RoundentryConnectinfo, err error)
RoundentryConnectinfo trades an authtoken for a `vbcore.RoundentryConnectinfo`
func RoundentryWatchresolve ¶
RoundentryWatchresolve resolves a watchtoken to it's associated websocket address, so clients only knowing the watchtoken can find their gameserver information publisher
func UserGetPublicByID ¶
UserGetPublicByID returns the public user profile from the database associated with the `userID`.
func UserGetPublicByUsername ¶
UserGetPublicByUsername returns the public user profile from the database associated with the `username`.
Types ¶
Click to show internal directories.
Click to hide internal directories.