server

package
v0.0.0-...-0e611fa Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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

type UserIDKey

type UserIDKey struct{}

UserIDKey is the struct used for passing User ID with context

Jump to

Keyboard shortcuts

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