Documentation ¶
Index ¶
- type Server
- func (s *Server) ChangeUsername(ctx context.Context, req *userpb.ChangeUsernameRequest) (*userpb.ChangeUsernameResponse, error)
- func (s *Server) GetProfile(ctx context.Context, req *userpb.GetProfileRequest) (*userpb.GetProfileResponse, error)
- func (s *Server) Logout(ctx context.Context, req *userpb.RefreshTokenRequest) (*userpb.Empty, error)
- func (s *Server) RefreshTokens(ctx context.Context, req *userpb.RefreshTokenRequest) (*userpb.TokensResponse, error)
- func (s *Server) SendOtpEmail(ctx context.Context, req *userpb.SendOtpEmailRequest) (*userpb.SendOtpEmailResponse, error)
- func (s *Server) Start(addr string) error
- func (s *Server) VerifyOtp(ctx context.Context, req *userpb.VerifyOtpRequest) (*userpb.TokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { userpb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func New ¶
func New( userStore *usermodel.UserStore, otpStorage *otpstorage.Storage, refreshStorage *refreshstorage.Storage, rabbitClient *rabbitclient.Client, ) *Server
func (*Server) ChangeUsername ¶
func (s *Server) ChangeUsername(ctx context.Context, req *userpb.ChangeUsernameRequest) (*userpb.ChangeUsernameResponse, error)
func (*Server) GetProfile ¶
func (s *Server) GetProfile(ctx context.Context, req *userpb.GetProfileRequest) (*userpb.GetProfileResponse, error)
func (*Server) RefreshTokens ¶
func (s *Server) RefreshTokens(ctx context.Context, req *userpb.RefreshTokenRequest) (*userpb.TokensResponse, error)
func (*Server) SendOtpEmail ¶
func (s *Server) SendOtpEmail(ctx context.Context, req *userpb.SendOtpEmailRequest) (*userpb.SendOtpEmailResponse, error)
func (*Server) VerifyOtp ¶
func (s *Server) VerifyOtp(ctx context.Context, req *userpb.VerifyOtpRequest) (*userpb.TokensResponse, error)
Click to show internal directories.
Click to hide internal directories.