Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthInterceptor ¶
func AuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
type AuthSvc ¶
type AuthSvc struct {
// contains filtered or unexported fields
}
AuthSvc Service
func NewAuthSvc ¶
func NewAuthSvc(urepo repository.UserRepository, log *logrus.Logger) *AuthSvc
NewAuthSvc Instantiate new auth Service
func (*AuthSvc) Register ¶
func (s *AuthSvc) Register(ctx context.Context, udto *pb.RegisterDto) (*pb.UserAuthResDto, error)
Register ...
type GRPCService ¶
type GRPCService struct { AuthSvc *AuthSvc // contains filtered or unexported fields }
GRPCService ...
func BuildGRPCService ¶
func BuildGRPCService(server *grpc.Server, repository repository.Repository) *GRPCService
BuildGRPCService register gRPC services implementation
Click to show internal directories.
Click to hide internal directories.