Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoSessionUser = errors.New("no user in session") FailedAssertUser = errors.New("failed to assert user from session") )
Functions ¶
func RemoveUserFromSession ¶
func UserSignedIn ¶
Types ¶
type User ¶
type User struct {
Id, Name, Email string
}
func UserFromCtx ¶
func (*User) SaveToSession ¶
Click to show internal directories.
Click to hide internal directories.