Documentation ¶
Index ¶
- type Session
- func (s *Session) Clear(c *gin.Context) error
- func (s *Session) CreateUser(c *gin.Context, user *core.User) error
- func (s *Session) EndBindUser(c *gin.Context) error
- func (s *Session) GetUser(c *gin.Context) *core.User
- func (s *Session) ShouldBindUser(c *gin.Context) bool
- func (s *Session) StartBindUser(c *gin.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { }
Session stores records for Gin
func (*Session) CreateUser ¶
CreateUser in session record
func (*Session) EndBindUser ¶
EndBindUser remarks server finishes bind new SCM account in session
func (*Session) ShouldBindUser ¶
ShouldBindUser tells if the new SCM login should be with a user
Click to show internal directories.
Click to hide internal directories.