Documentation ¶
Index ¶
- type ErrSessionNotFound
- type ErrTooManySessions
- type Storage
- func (s *Storage) Close(ctx context.Context) (err error)
- func (s *Storage) EndAllSessions(ctx context.Context, userId string) (err error)
- func (s *Storage) EndSession(ctx context.Context, userId string, sessionId int64) (err error)
- func (s *Storage) Open() error
- func (s *Storage) SessionKeyInfo(ctx context.Context, key string) (userId string, sessionId int64, err error)
- func (s *Storage) StartNewSession(ctx context.Context, userId, ip, agent string) (id int64, key string, err error)
- func (s *Storage) UpdateSessionInfo(ctx context.Context, userId string, sessionId int64, ...) (err error)
- func (s *Storage) UserSessionsV1(ctx context.Context, userId string) (sessions *models.UserSessionsV1, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrSessionNotFound ¶
type ErrSessionNotFound struct{}
func (*ErrSessionNotFound) Error ¶
func (e *ErrSessionNotFound) Error() string
func (*ErrSessionNotFound) ImplementsSessionNotFoundError ¶
func (e *ErrSessionNotFound) ImplementsSessionNotFoundError()
type ErrTooManySessions ¶
type ErrTooManySessions struct{}
func (*ErrTooManySessions) Error ¶
func (e *ErrTooManySessions) Error() string
func (*ErrTooManySessions) ImplementsTooManySessionsError ¶
func (e *ErrTooManySessions) ImplementsTooManySessionsError()
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) EndAllSessions ¶
func (*Storage) EndSession ¶
func (*Storage) SessionKeyInfo ¶
func (*Storage) StartNewSession ¶
func (*Storage) UpdateSessionInfo ¶
func (*Storage) UserSessionsV1 ¶
Click to show internal directories.
Click to hide internal directories.