Documentation ¶
Index ¶
- type AuthServer
- func (s *AuthServer) Login(ctx context.Context, req *authv1.LoginRequest) (*authv1.LoginResponse, error)
- func (s *AuthServer) Register(ctx context.Context, req *authv1.RegisterRequest) (*authv1.RegisterResponse, error)
- func (s *AuthServer) Validate(ctx context.Context, req *authv1.ValidateRequest) (*authv1.ValidateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
type AuthServer struct { authv1.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthServer ¶
func NewAuthServer(repo *repo.Repository, jwt *jwtoken.JwtWrapper, log *zap.Logger) *AuthServer
func (*AuthServer) Login ¶
func (s *AuthServer) Login(ctx context.Context, req *authv1.LoginRequest) (*authv1.LoginResponse, error)
func (*AuthServer) Register ¶
func (s *AuthServer) Register(ctx context.Context, req *authv1.RegisterRequest) (*authv1.RegisterResponse, error)
func (*AuthServer) Validate ¶
func (s *AuthServer) Validate(ctx context.Context, req *authv1.ValidateRequest) (*authv1.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.