Documentation ¶
Index ¶
- type Controller
- func (c *Controller) GetAccountInfo(token string) (*proto.GetAccountDataResponse, error)
- func (c *Controller) GetAccountInfoByEmail(email string) (*proto.GetAccountDataResponse, error)
- func (c *Controller) IsAuthorized(data *authEntities.AuthorizationData) (bool, error)
- func (c *Controller) Login(credentials *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
- type IController
- type Mock
- func (m *Mock) GetAccountInfo(_ string) (*proto.GetAccountDataResponse, error)
- func (m *Mock) GetAccountInfoByEmail(_ string) (*proto.GetAccountDataResponse, error)
- func (m *Mock) IsAuthorized(_ *authEntities.AuthorizationData) (bool, error)
- func (m *Mock) Login(_ *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) GetAccountInfo ¶
func (c *Controller) GetAccountInfo(token string) (*proto.GetAccountDataResponse, error)
func (*Controller) GetAccountInfoByEmail ¶
func (c *Controller) GetAccountInfoByEmail(email string) (*proto.GetAccountDataResponse, error)
func (*Controller) IsAuthorized ¶
func (c *Controller) IsAuthorized(data *authEntities.AuthorizationData) (bool, error)
func (*Controller) Login ¶
func (c *Controller) Login(credentials *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
type IController ¶
type IController interface { Login(credentials *authEntities.LoginCredentials) (*authEntities.LoginResponse, error) IsAuthorized(data *authEntities.AuthorizationData) (bool, error) GetAccountInfo(token string) (*proto.GetAccountDataResponse, error) GetAccountInfoByEmail(email string) (*proto.GetAccountDataResponse, error) }
func NewAuthenticationController ¶
func NewAuthenticationController(appConfig app.IConfig, authHorusec horusec.IService, ldapAuth ldap.IService, keycloakAuth keycloak.IService, repositoryAccount accountRepository.IRepository) IController
type Mock ¶
func (*Mock) GetAccountInfo ¶
func (m *Mock) GetAccountInfo(_ string) (*proto.GetAccountDataResponse, error)
func (*Mock) GetAccountInfoByEmail ¶
func (m *Mock) GetAccountInfoByEmail(_ string) (*proto.GetAccountDataResponse, error)
func (*Mock) IsAuthorized ¶
func (m *Mock) IsAuthorized(_ *authEntities.AuthorizationData) (bool, error)
func (*Mock) Login ¶
func (m *Mock) Login(_ *authEntities.LoginCredentials) (*authEntities.LoginResponse, error)
Click to show internal directories.
Click to hide internal directories.