identity

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Cookie cookie provider for identity store

func NewCookie

func NewCookie() *Cookie

NewCookie new cookie provider

func (Cookie) Clear

func (c Cookie) Clear()

Clear clear all session

func (Cookie) GetID

func (c Cookie) GetID() string

GetID get session id

func (*Cookie) SetContext

func (c *Cookie) SetContext(cxt interface{})

SetContext set http context

func (Cookie) SetID

func (c Cookie) SetID(sessionId string)

SetID set session id

func (*Cookie) SetMaxLifeTime

func (c *Cookie) SetMaxLifeTime(liftTime int64)

SetMaxLifeTime set life time

func (*Cookie) SetName

func (c *Cookie) SetName(name string)

SetName Set cookie name

type IProvider

type IProvider interface {
	SetID(sessionId string)
	GetID() string
	Clear()
	SetName(name string)
	SetMaxLifeTime(liftTime int64)
	SetContext(context interface{})
}

Jump to

Keyboard shortcuts

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