cookies

package
v0.0.0-...-3013220 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAuthInfo

type UserAuthInfo struct {
	// contains filtered or unexported fields
}

func (*UserAuthInfo) GetID

func (i *UserAuthInfo) GetID() int64

func (*UserAuthInfo) GetLogin

func (i *UserAuthInfo) GetLogin() string

func (*UserAuthInfo) IsLoggedIn

func (i *UserAuthInfo) IsLoggedIn() bool

type UserSession

type UserSession struct {
	// contains filtered or unexported fields
}

func NewUserSession

func NewUserSession(session *sessions.Session) *UserSession

func (*UserSession) Flush

func (s *UserSession) Flush(r *http.Request, w http.ResponseWriter) error

func (*UserSession) GetAuthInfo

func (s *UserSession) GetAuthInfo() security.UserAuthInfo

func (*UserSession) GetID

func (s *UserSession) GetID() int64

func (*UserSession) GetLogin

func (s *UserSession) GetLogin() string

func (*UserSession) IsLoggedIn

func (s *UserSession) IsLoggedIn() bool

func (*UserSession) Reset

func (s *UserSession) Reset(r *http.Request, w http.ResponseWriter) error

func (*UserSession) SetID

func (s *UserSession) SetID(value int64)

func (*UserSession) SetLogin

func (s *UserSession) SetLogin(value string)

type UserSessionStorage

type UserSessionStorage struct {
}

func NewUserSessionStorage

func NewUserSessionStorage() *UserSessionStorage

func (*UserSessionStorage) GetSession

Jump to

Keyboard shortcuts

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