Documentation ¶
Index ¶
- type AuthManager
- type AuthService
- func (as *AuthService) AddSession(sm storage.StorageManager, request *entities.AuthRequest, ctx context.Context) (uint64, error)
- func (as *AuthService) GetSessionConn(token uint64) (storage.ConnDB, error)
- func (as *AuthService) GetSessionRole(token uint64) (string, error)
- func (as *AuthService) RemoveSession(sm storage.StorageManager, token uint64) error
- func (as *AuthService) SessionExist(token uint64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager interface { AddSession(sm storage.StorageManager, request *entities.AuthRequest, ctx context.Context) (uint64, error) RemoveSession(sm storage.StorageManager, token uint64) error GetSessionRole(token uint64) (string, error) GetSessionConn(token uint64) (storage.ConnDB, error) SessionExist(token uint64) bool }
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(logger *log.Logger) *AuthService
func (*AuthService) AddSession ¶
func (as *AuthService) AddSession(sm storage.StorageManager, request *entities.AuthRequest, ctx context.Context) (uint64, error)
func (*AuthService) GetSessionConn ¶
func (as *AuthService) GetSessionConn(token uint64) (storage.ConnDB, error)
func (*AuthService) GetSessionRole ¶
func (as *AuthService) GetSessionRole(token uint64) (string, error)
func (*AuthService) RemoveSession ¶
func (as *AuthService) RemoveSession(sm storage.StorageManager, token uint64) error
func (*AuthService) SessionExist ¶
func (as *AuthService) SessionExist(token uint64) bool
Click to show internal directories.
Click to hide internal directories.