Documentation
¶
Index ¶
- type GRPCServer
- func (s *GRPCServer) Login(ctx context.Context, req *auth.LoginRequest) (*auth.LoginResponse, error)
- func (s *GRPCServer) Register(ctx context.Context, req *auth.RegisterRequest) (*auth.RegisterResponse, error)
- func (s *GRPCServer) Start(port string) error
- func (s *GRPCServer) Stop()
- func (s *GRPCServer) ValidateToken(ctx context.Context, req *auth.ValidateTokenRequest) (*auth.ValidateTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct {
auth.UnimplementedAuthServiceServer
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(registrService service.Registr) *GRPCServer
func (*GRPCServer) Login ¶
func (s *GRPCServer) Login(ctx context.Context, req *auth.LoginRequest) (*auth.LoginResponse, error)
func (*GRPCServer) Register ¶
func (s *GRPCServer) Register(ctx context.Context, req *auth.RegisterRequest) (*auth.RegisterResponse, error)
func (*GRPCServer) Start ¶
func (s *GRPCServer) Start(port string) error
func (*GRPCServer) Stop ¶
func (s *GRPCServer) Stop()
func (*GRPCServer) ValidateToken ¶
func (s *GRPCServer) ValidateToken(ctx context.Context, req *auth.ValidateTokenRequest) (*auth.ValidateTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.