Documentation ¶
Index ¶
- func Register(name string, provider Provider)
- type Manager
- func (manager *Manager) GC()
- func (manager *Manager) GetCookie(r *http.Request) (*http.Cookie, error)
- func (manager *Manager) SessionCheck(r *http.Request) (Session, bool)
- func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request)
- func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) Session
- type Provider
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the interface for session manager
func NewManager ¶
NewManager creates a new session manager and returns its pointer reference
func (*Manager) SessionCheck ¶
SessionCheck checks if any session associated with the request exists and returns the session if found
func (*Manager) SessionDestroy ¶
func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request)
SessionDestroy deletes any existing session associated with the request
func (*Manager) SessionStart ¶
SessionStart checks if any session associated with the request exists and creates assigns a new one if not present
Click to show internal directories.
Click to hide internal directories.