users

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(gRPCServer *grpc.Server, useCases interfaces.UseCases)

Register handler (serverAPI) for AuthServer to gRPC server:.

Types

type ServerAPI

type ServerAPI struct {
	// Helps to test single endpoints, if others is not implemented yet
	sso.UnimplementedUsersServiceServer
	UseCases interfaces.UseCases
}

func (*ServerAPI) GetUser

func (api *ServerAPI) GetUser(ctx context.Context, request *sso.GetUserRequest) (*sso.GetUserResponse, error)

GetUser handler return user with provided data for UsersServer.

func (*ServerAPI) GetUsers

func (api *ServerAPI) GetUsers(ctx context.Context, request *emptypb.Empty) (*sso.GetUsersResponse, error)

GetUsers user handler return all users for UsersServer.

Jump to

Keyboard shortcuts

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