Documentation
¶
Index ¶
- Variables
- type Manager
- type ServiceProvider
- type Session
- func (s *Session) All() map[string]any
- func (s *Session) Exists(key string) bool
- func (s *Session) Flash(key string, value any) sessioncontract.Session
- func (s *Session) Flush() sessioncontract.Session
- func (s *Session) Forget(keys ...string) sessioncontract.Session
- func (s *Session) Get(key string, defaultValue ...any) any
- func (s *Session) GetID() string
- func (s *Session) GetName() string
- func (s *Session) Has(key string) bool
- func (s *Session) Invalidate() error
- func (s *Session) Keep(keys ...string) sessioncontract.Session
- func (s *Session) Missing(key string) bool
- func (s *Session) Now(key string, value any) sessioncontract.Session
- func (s *Session) Only(keys []string) map[string]any
- func (s *Session) Pull(key string, def ...any) any
- func (s *Session) Put(key string, value any) sessioncontract.Session
- func (s *Session) Reflash() sessioncontract.Session
- func (s *Session) Regenerate(destroy ...bool) error
- func (s *Session) Remove(key string) any
- func (s *Session) Save() error
- func (s *Session) SetDriver(driver sessioncontract.Driver) sessioncontract.Session
- func (s *Session) SetID(id string) sessioncontract.Session
- func (s *Session) SetName(name string) sessioncontract.Session
- func (s *Session) Start() bool
- func (s *Session) Token() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SessionFacade session.Manager ConfigFacade config.Config )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(config config.Config, json foundation.Json) *Manager
func (*Manager) BuildSession ¶
func (m *Manager) BuildSession(handler contractssession.Driver, sessionID ...string) (contractssession.Session, error)
func (*Manager) ReleaseSession ¶ added in v1.15.0
func (m *Manager) ReleaseSession(session contractssession.Session)
type ServiceProvider ¶
type ServiceProvider struct {
}
func (*ServiceProvider) Boot ¶
func (r *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (r *ServiceProvider) Register(app foundation.Application)
func (*ServiceProvider) Relationship ¶ added in v1.15.12
func (r *ServiceProvider) Relationship() binding.Relationship
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(name string, driver sessioncontract.Driver, json foundation.Json, id ...string) *Session
func (*Session) Flush ¶
func (s *Session) Flush() sessioncontract.Session
func (*Session) Invalidate ¶
func (*Session) Reflash ¶
func (s *Session) Reflash() sessioncontract.Session
func (*Session) Regenerate ¶
func (*Session) SetDriver ¶ added in v1.15.0
func (s *Session) SetDriver(driver sessioncontract.Driver) sessioncontract.Session
Click to show internal directories.
Click to hide internal directories.