Documentation ¶
Index ¶
- type Session
- type SessionRepo
- func (redisRepo *SessionRepo) AddSession(ctx context.Context, active Session, lg *slog.Logger) (bool, error)
- func (redisRepo *SessionRepo) CheckActiveSession(ctx context.Context, sid string, lg *slog.Logger) (bool, error)
- func (redisRepo *SessionRepo) CheckRedisSessionConnection(sessionCfg configs.DbRedisCfg)
- func (redisRepo *SessionRepo) DeleteSession(ctx context.Context, sid string, lg *slog.Logger) (bool, error)
- func (redisRepo *SessionRepo) GetUserLogin(ctx context.Context, sid string, lg *slog.Logger) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRepo ¶
type SessionRepo struct { Connection bool // contains filtered or unexported fields }
func GetSessionRepo ¶
func GetSessionRepo(sessionCfg configs.DbRedisCfg, lg *slog.Logger) (*SessionRepo, error)
func (*SessionRepo) AddSession ¶
func (*SessionRepo) CheckActiveSession ¶
func (*SessionRepo) CheckRedisSessionConnection ¶
func (redisRepo *SessionRepo) CheckRedisSessionConnection(sessionCfg configs.DbRedisCfg)
func (*SessionRepo) DeleteSession ¶
func (*SessionRepo) GetUserLogin ¶
Click to show internal directories.
Click to hide internal directories.