Documentation ¶
Index ¶
- Constants
- 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) SetID(id string) sessioncontract.Session
- func (s *Session) SetName(name string) sessioncontract.Session
- func (s *Session) Start() bool
- func (s *Session) Token() string
Constants ¶
View Source
const Binding = "goravel.session"
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 sessioncontract.Driver, sessionID ...string) sessioncontract.Session
func (*Manager) Extend ¶
func (m *Manager) Extend(driver string, handler func() sessioncontract.Driver) sessioncontract.Manager
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (receiver *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (receiver *ServiceProvider) Register(app foundation.Application)
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 ¶
Click to show internal directories.
Click to hide internal directories.