Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthServer ¶
func NewAuthServer(db repo.UsersRepo, jwtManager *jwt.JWTManager) *authServer
NewAuthServer returns a new auth server
func NewUserDataServer ¶
func NewUserDataServer(db repo.UsersDataRepo, jwt *jwt.JWTManager, log *zap.SugaredLogger, fileStore repo.UsersFilesRepo) *userDataServer
NewUserDataServer returns new user file data handler
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor is the Interceptor struct for server
func NewAuthInterceptor ¶
func NewAuthInterceptor(am *jwt.JWTManager, publicMethods map[string]bool) *AuthInterceptor
NewAuthInterceptor creates a new NewAuthInterceptor instance
func (*AuthInterceptor) Unary ¶
func (interceptor *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a new UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.