cookie

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func GetCookieManagerInstance

func GetCookieManagerInstance() *Manager

func (*Manager) CreateAuthCookie

func (cookieManager *Manager) CreateAuthCookie(username string, loginSessionId string) (http.Cookie, error)

func (*Manager) CreateForwardAuthCookie added in v0.7.8

func (cookieManager *Manager) CreateForwardAuthCookie(username string, loginSessionId string) (http.Cookie, error)

func (*Manager) CreateMessageCookie

func (cookieManager *Manager) CreateMessageCookie(message string) http.Cookie

func (*Manager) DeleteAuthCookie

func (cookieManager *Manager) DeleteAuthCookie() http.Cookie

func (*Manager) GetMessageCookieValue

func (cookieManager *Manager) GetMessageCookieValue(r *http.Request) string

func (*Manager) ValidateAuthCookie

func (cookieManager *Manager) ValidateAuthCookie(r *http.Request) (*config.User, *session.LoginSession, bool)

func (*Manager) ValidateForwardAuthCookie added in v0.7.8

func (cookieManager *Manager) ValidateForwardAuthCookie(r *http.Request) (*config.User, *session.LoginSession, bool)

type Now

type Now func() time.Time

Jump to

Keyboard shortcuts

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