Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeGob(encoded []byte) (out map[interface{}]interface{}, err error)
- func EncodeGob(obj map[interface{}]interface{}) ([]byte, error)
- func GetUser(c echo.Context) *db.User
- func GitlabAuthCHeck(c echo.Context) (err error)
- func Init(db *gorm.DB)
- func InitUser(invokerDB *gorm.DB) *user
- func InitUserSession() *userSession
- func IsAdmin(c echo.Context) bool
- func NewSessionStore() sessions.Store
Constants ¶
View Source
const DefaultKey = "session_juno"
Variables ¶
View Source
var ( User *user Session *userSession )
Functions ¶
func GitlabAuthCHeck ¶
func GitlabAuthCHeck(c echo.Context) (err error)
func InitUserSession ¶
func InitUserSession() *userSession
func NewSessionStore ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.