Documentation ¶
Index ¶
- type SessionRepositoryImpl
- func (repo *SessionRepositoryImpl) Delete(id string) error
- func (repo *SessionRepositoryImpl) Get(id string) (*domain.Session, error)
- func (repo *SessionRepositoryImpl) Len() int
- func (repo *SessionRepositoryImpl) PeekOldest() (*domain.Session, error)
- func (repo *SessionRepositoryImpl) Set(session *domain.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRepositoryImpl ¶
type SessionRepositoryImpl struct {
// contains filtered or unexported fields
}
SessionRepositoryImpl 会话仓储实现
func NewSessionRepositoryImpl ¶
func NewSessionRepositoryImpl() *SessionRepositoryImpl
NewSessionRepositoryImpl 创建新的会话仓储实现
func (*SessionRepositoryImpl) Delete ¶
func (repo *SessionRepositoryImpl) Delete(id string) error
Delete 删除会话
func (*SessionRepositoryImpl) Get ¶
func (repo *SessionRepositoryImpl) Get(id string) (*domain.Session, error)
Get 根据会话 ID 获取会话实体对象
func (*SessionRepositoryImpl) PeekOldest ¶
func (repo *SessionRepositoryImpl) PeekOldest() (*domain.Session, error)
PeekOldest 获取最久未使用的会话
Click to show internal directories.
Click to hide internal directories.