authservice

package
v0.0.0-...-08e0700 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 11 Imported by: 0

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.SignupRepository, jwtManager *token.JWTManager) *AuthService

NewAuthService returns AuthSErvice

func (*AuthService) Login

Login user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL