Documentation
¶
Index ¶
- Variables
- type Encoding
- type MapState
- type Provider
- type Session
- type SessionStore
- func (ss *SessionStore) Cleanup() int
- func (ss *SessionStore) Count() int
- func (ss *SessionStore) Create(id string, ttl time.Duration) *Session
- func (ss *SessionStore) Delete(id string)
- func (ss *SessionStore) Get(id string) (*Session, bool)
- func (ss *SessionStore) Restore(data []byte) error
- func (ss *SessionStore) Snapshot() ([]byte, error)
- type Store
- func (s *Store) ProviderCount() int
- func (s *Store) Register(name string, provider Provider)
- func (s *Store) RegisterProvider(provider Provider)
- func (s *Store) Restore(data []byte) error
- func (s *Store) SetCompression(enabled bool)
- func (s *Store) SetEncoding(enc Encoding)
- func (s *Store) Snapshot() ([]byte, error)
- func (s *Store) Unregister(name string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStateTooLarge = errors.New("state data exceeds maximum size")
View Source
var ErrVersionMismatch = errors.New("state version mismatch")
Functions ¶
This section is empty.
Types ¶
type MapState ¶
type MapState struct {
// contains filtered or unexported fields
}
func NewMapState ¶
func NewMapState() *MapState
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func NewSessionStore ¶
func NewSessionStore() *SessionStore
func (*SessionStore) Cleanup ¶
func (ss *SessionStore) Cleanup() int
func (*SessionStore) Count ¶
func (ss *SessionStore) Count() int
func (*SessionStore) Delete ¶
func (ss *SessionStore) Delete(id string)
func (*SessionStore) Restore ¶
func (ss *SessionStore) Restore(data []byte) error
func (*SessionStore) Snapshot ¶
func (ss *SessionStore) Snapshot() ([]byte, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ProviderCount ¶
func (*Store) RegisterProvider ¶
func (*Store) SetCompression ¶
func (*Store) SetEncoding ¶
func (*Store) Unregister ¶
Click to show internal directories.
Click to hide internal directories.