v1

package
v0.0.0-...-c99b2d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewHandler

func NewHandler(service *service.Service) *Handler

Creating a new gRPC handler.

func (*Handler) RegisterHandlers

func (h *Handler) RegisterHandlers(srv *grpc.Server)

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

Deleting a user session.

func (*SessionHandler) GetTotalUserSessionCount

Getting total user session count gRPC handler.

func (*SessionHandler) GetUserSession

Getting a user session gRPC handler.

func (*SessionHandler) GetUserSessions

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL