Documentation ¶
Index ¶
- type Controller
- func (c *Controller) AuthByType(credentials *dto.Credentials) (interface{}, error)
- func (c *Controller) GetAccountID(_ context.Context, data *authGrpc.GetAccountData) (*authGrpc.GetAccountDataResponse, error)
- func (c *Controller) GetAuthConfig(_ context.Context, _ *authGrpc.GetAuthConfigData) (*authGrpc.GetAuthConfigResponse, error)
- func (c *Controller) IsAuthorized(_ context.Context, data *authGrpc.IsAuthorizedData) (*authGrpc.IsAuthorizedResponse, error)
- type IController
- type MockAuthController
- func (m *MockAuthController) AuthByType(_ *dto.Credentials) (interface{}, error)
- func (m *MockAuthController) GetAccountID(_ context.Context, _ *authGrpc.GetAccountData) (*authGrpc.GetAccountDataResponse, error)
- func (m *MockAuthController) GetAuthConfig(_ context.Context, _ *authGrpc.GetAuthConfigData) (*authGrpc.GetAuthConfigResponse, error)
- func (m *MockAuthController) IsAuthorized(_ context.Context, _ *authGrpc.IsAuthorizedData) (*authGrpc.IsAuthorizedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { authGrpc.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthController ¶
func NewAuthController( postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite, appConfig *app.Config) *Controller
func (*Controller) AuthByType ¶
func (c *Controller) AuthByType(credentials *dto.Credentials) (interface{}, error)
func (*Controller) GetAccountID ¶
func (c *Controller) GetAccountID(_ context.Context, data *authGrpc.GetAccountData) (*authGrpc.GetAccountDataResponse, error)
func (*Controller) GetAuthConfig ¶
func (c *Controller) GetAuthConfig(_ context.Context, _ *authGrpc.GetAuthConfigData) (*authGrpc.GetAuthConfigResponse, error)
func (*Controller) IsAuthorized ¶
func (c *Controller) IsAuthorized(_ context.Context, data *authGrpc.IsAuthorizedData) (*authGrpc.IsAuthorizedResponse, error)
type IController ¶
type IController interface { AuthByType(credentials *dto.Credentials) (interface{}, error) IsAuthorized(_ context.Context, data *authGrpc.IsAuthorizedData) (*authGrpc.IsAuthorizedResponse, error) GetAuthConfig(_ context.Context, data *authGrpc.GetAuthConfigData) (*authGrpc.GetAuthConfigResponse, error) GetAccountID(_ context.Context, data *authGrpc.GetAccountData) (*authGrpc.GetAccountDataResponse, error) }
type MockAuthController ¶
func (*MockAuthController) AuthByType ¶
func (m *MockAuthController) AuthByType(_ *dto.Credentials) (interface{}, error)
func (*MockAuthController) GetAccountID ¶
func (m *MockAuthController) GetAccountID(_ context.Context, _ *authGrpc.GetAccountData) (*authGrpc.GetAccountDataResponse, error)
func (*MockAuthController) GetAuthConfig ¶
func (m *MockAuthController) GetAuthConfig(_ context.Context, _ *authGrpc.GetAuthConfigData) (*authGrpc.GetAuthConfigResponse, error)
func (*MockAuthController) IsAuthorized ¶
func (m *MockAuthController) IsAuthorized(_ context.Context, _ *authGrpc.IsAuthorizedData) (*authGrpc.IsAuthorizedResponse, error)
Click to show internal directories.
Click to hide internal directories.