Documentation ¶
Index ¶
- Constants
- type Config
- type Provider
- func (fp *Provider) Count() int
- func (fp *Provider) Destroy(sessionId string) error
- func (fp *Provider) GC()
- func (fp *Provider) Init(lifeTime int64, fileConfig fasthttpsession.ProviderConfig) error
- func (fp *Provider) NeedGC() bool
- func (fp *Provider) ReadStore(sessionId string) (fasthttpsession.SessionStore, error)
- func (fp *Provider) Regenerate(oldSessionId string, sessionId string) (fasthttpsession.SessionStore, error)
- type Store
Constants ¶
View Source
const ProviderName = "file"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Init ¶
func (fp *Provider) Init(lifeTime int64, fileConfig fasthttpsession.ProviderConfig) error
init provider config
func (*Provider) ReadStore ¶
func (fp *Provider) ReadStore(sessionId string) (fasthttpsession.SessionStore, error)
read session store by session id
func (*Provider) Regenerate ¶
func (fp *Provider) Regenerate(oldSessionId string, sessionId string) (fasthttpsession.SessionStore, error)
regenerate session
type Store ¶
type Store struct {
fasthttpsession.Store
}
Click to show internal directories.
Click to hide internal directories.