Documentation ¶
Index ¶
- type IAuthService
- type SessionManager
- func (s *SessionManager) Check(ctx context.Context, sessionUser *auth.Session) (*auth.UserID, error)
- func (s *SessionManager) Create(ctx context.Context, user *auth.User) (*auth.Session, error)
- func (s *SessionManager) Delete(ctx context.Context, sessionUser *auth.Session) (*auth.Session, error)
- func (s *SessionManager) Login(ctx context.Context, user *auth.User) (*auth.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAuthService ¶
type IAuthService interface { AddUser(ctx context.Context, email string, password string) (string, error) LoginUser(ctx context.Context, email string, password string) (string, error) Delete(ctx context.Context, rawJwt string) (string, error) Check(ctx context.Context, rawJwt string) (uint64, error) }
type SessionManager ¶
type SessionManager struct { auth.UnimplementedSessionMangerServer // contains filtered or unexported fields }
func NewSessionManager ¶
func NewSessionManager(pool *pgxpool.Pool, authService IAuthService) (*SessionManager, error)
Click to show internal directories.
Click to hide internal directories.