server

package
v0.0.0-...-8f9543d Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: GPL-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 GrpcServer

type GrpcServer struct {
	userservice.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

GrpcServer represents a server implementation it is in many ways an adapter to the core of the architecture

func NewGrpcServer

func NewGrpcServer(userservice user.Service, deviceService device.FlyingDeviceService) GrpcServer

NewGrpcServer creates a new GrpcServer instance

func (*GrpcServer) ActivateUser

ActivateUser activates a user in the database after a user has clicked activation link

func (*GrpcServer) LoginUser

func (s *GrpcServer) LoginUser(_ context.Context, loginRequest *userservice.LoginRequest) (*userservice.LoginResponse, error)

LoginUser verifies a user login request for the api-gateway

func (*GrpcServer) RegisterUser

func (s *GrpcServer) RegisterUser(_ context.Context, createUserRequest *userservice.CreateUserRequest) (*userservice.CreateUserResponse, error)

RegisterUser creates a new user in the database

func (*GrpcServer) UserByUserId

func (s *GrpcServer) UserByUserId(_ context.Context, userByIdRequest *userservice.UserByIdRequest) (*userservice.UserByIdResponse, error)

Jump to

Keyboard shortcuts

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