session

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) Clear

func (s *Session) Clear(c *gin.Context) error

Clear all session records

func (*Session) CreateUser

func (s *Session) CreateUser(c *gin.Context, user *core.User) error

CreateUser in session record

func (*Session) EndBindUser

func (s *Session) EndBindUser(c *gin.Context) error

EndBindUser remarks server finishes bind new SCM account in session

func (*Session) GetUser

func (s *Session) GetUser(c *gin.Context) *core.User

GetUser from session

func (*Session) ShouldBindUser

func (s *Session) ShouldBindUser(c *gin.Context) bool

ShouldBindUser tells if the new SCM login should be with a user

func (*Session) StartBindUser

func (s *Session) StartBindUser(c *gin.Context) error

StartBindUser remarks a user is going to bind new SCM account in session

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL