Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(jwtManager *token.JWTManager, accessibleRoles map[string][]string) *AuthInterceptor
NewInterceptor return a new auth interceptor
func (*AuthInterceptor) Unary ¶
func (interceptor *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary returns a server interceptor function for a Unary rpc call
type AuthService ¶
type AuthService struct { authv1.UnimplementedAuthServiceServer // contains filtered or unexported fields }
AuthService mains struct providing protoc implementation and repositories
func NewAuthService ¶
func NewAuthService(userStore repositories.UsersRepository, jwtManager *token.JWTManager) *AuthService
NewAuthService returns AuthSErvice
func (*AuthService) Login ¶
func (service *AuthService) Login(c context.Context, req *authv1.LoginRequest) (*authv1.LoginResponse, error)
Login user
Click to show internal directories.
Click to hide internal directories.