Documentation ¶
Index ¶
- type Handler
- type SessionHandler
- func (h *SessionHandler) DeleteUserSession(ctx context.Context, input *v1.DeleteUserSessionRequest) (*v1.DeleteUserSessionResponse, error)
- func (h *SessionHandler) GetTotalUserSessionCount(ctx context.Context, input *v1.GetTotalUserSessionCountRequest) (*v1.GetTotalUserSessionCountResponse, error)
- func (h *SessionHandler) GetUserSession(ctx context.Context, input *v1.GetUserSessionRequest) (*v1.GetUserSessionResponse, error)
- func (h *SessionHandler) GetUserSessions(ctx context.Context, input *v1.GetUserSessionsRequest) (*v1.GetUserSessionsResponse, error)
- type UserHandler
- func (h *UserHandler) RefreshUserToken(ctx context.Context, input *v1.RefreshUserTokenRequest) (*v1.RefreshUserTokenResponse, error)
- func (h *UserHandler) UserSignIn(ctx context.Context, input *v1.UserSignInRequest) (*v1.UserSignInResponse, error)
- func (h *UserHandler) UserSignUp(ctx context.Context, input *v1.UserSignUpRequest) (*v1.UserSignUpResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
gRPC handler structure.
func (*Handler) RegisterHandlers ¶
Registering gRPC handlers.
type SessionHandler ¶
type SessionHandler struct { v1.UnimplementedUserSessionServiceServer // contains filtered or unexported fields }
User session gRPC handler.
func NewSessionHandler ¶
func NewSessionHandler(service service.Session) *SessionHandler
Creating a new user session gRPC handler.
func (*SessionHandler) DeleteUserSession ¶
func (h *SessionHandler) DeleteUserSession(ctx context.Context, input *v1.DeleteUserSessionRequest) (*v1.DeleteUserSessionResponse, error)
Deleting a user session.
func (*SessionHandler) GetTotalUserSessionCount ¶
func (h *SessionHandler) GetTotalUserSessionCount(ctx context.Context, input *v1.GetTotalUserSessionCountRequest) (*v1.GetTotalUserSessionCountResponse, error)
Getting total user session count gRPC handler.
func (*SessionHandler) GetUserSession ¶
func (h *SessionHandler) GetUserSession(ctx context.Context, input *v1.GetUserSessionRequest) (*v1.GetUserSessionResponse, error)
Getting a user session gRPC handler.
func (*SessionHandler) GetUserSessions ¶
func (h *SessionHandler) GetUserSessions(ctx context.Context, input *v1.GetUserSessionsRequest) (*v1.GetUserSessionsResponse, error)
Getting a user sessions gRPC handler.
type UserHandler ¶
type UserHandler struct { v1.UnimplementedUserAuthServiceServer // contains filtered or unexported fields }
User auth gRPC handler.
func NewUserHandler ¶
func NewUserHandler(service service.User) *UserHandler
Creating a new user auth gRPC handler.
func (*UserHandler) RefreshUserToken ¶
func (h *UserHandler) RefreshUserToken(ctx context.Context, input *v1.RefreshUserTokenRequest) (*v1.RefreshUserTokenResponse, error)
Refresh user authentication token gRPC handler.
func (*UserHandler) UserSignIn ¶
func (h *UserHandler) UserSignIn(ctx context.Context, input *v1.UserSignInRequest) (*v1.UserSignInResponse, error)
User Sign In gRPC handler.
func (*UserHandler) UserSignUp ¶
func (h *UserHandler) UserSignUp(ctx context.Context, input *v1.UserSignUpRequest) (*v1.UserSignUpResponse, error)
User Sign Up gRPC handler.
Click to show internal directories.
Click to hide internal directories.