infrastructure

package
v0.0.0-...-ac94473 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Len

func (repo *SessionRepositoryImpl) Len() int

Len 获取当前会话数

func (*SessionRepositoryImpl) PeekOldest

func (repo *SessionRepositoryImpl) PeekOldest() (*domain.Session, error)

PeekOldest 获取最久未使用的会话

func (*SessionRepositoryImpl) Set

func (repo *SessionRepositoryImpl) Set(session *domain.Session) error

Set 保存会话实体对象

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL