users

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer added in v0.1.0

func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)

RegisterServer handler (serverAPI) for UsersServer to gRPC server:.

Types

type ServerAPI

type ServerAPI struct {
	// Helps to test single endpoints, if others is not implemented yet
	sso.UnimplementedUsersServiceServer
	// contains filtered or unexported fields
}

func (*ServerAPI) GetMe added in v0.1.0

func (api *ServerAPI) GetMe(ctx context.Context, in *sso.GetMeIn) (*sso.GetUserOut, error)

GetMe handler returns User according to provided Access Token.

func (*ServerAPI) GetUser

func (api *ServerAPI) GetUser(ctx context.Context, in *sso.GetUserIn) (*sso.GetUserOut, error)

GetUser handler returns User according provided data.

func (*ServerAPI) GetUserByEmail added in v1.2.1

func (api *ServerAPI) GetUserByEmail(ctx context.Context, in *sso.GetUserByEmailIn) (*sso.GetUserOut, error)

func (*ServerAPI) GetUsers

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

GetUsers handler returns all Users.

func (*ServerAPI) UpdateUserProfile added in v1.4.1

func (api *ServerAPI) UpdateUserProfile(ctx context.Context, in *sso.UpdateUserProfileIn) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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