Documentation
¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_ELO = 1000.0
)
TODO find a good place for this
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cfg *config.Config) *Controller
func (*Controller) BasicAuthLoginHandler ¶
func (ctrl *Controller) BasicAuthLoginHandler(c *gin.Context)
Creates user if the user doesn't exist. Otherwise, authenticates against provided password. Returns a token if the user is authenticated or was just created.
func (*Controller) BotUploadHandler ¶
func (ctrl *Controller) BotUploadHandler(c *gin.Context)
func (*Controller) GetUser ¶
func (ctrl *Controller) GetUser(c *gin.Context)
func (*Controller) OAuthCallbackHandler ¶
func (ctrl *Controller) OAuthCallbackHandler(c *gin.Context)
func (*Controller) OAuthLoginHandler ¶
func (ctrl *Controller) OAuthLoginHandler(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.