Documentation
¶
Index ¶
- func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)
- type ServerAPI
- func (api *ServerAPI) GetMe(ctx context.Context, in *sso.GetMeIn) (*sso.GetUserOut, error)
- func (api *ServerAPI) GetUser(ctx context.Context, in *sso.GetUserIn) (*sso.GetUserOut, error)
- func (api *ServerAPI) GetUserByEmail(ctx context.Context, in *sso.GetUserByEmailIn) (*sso.GetUserOut, error)
- func (api *ServerAPI) GetUsers(ctx context.Context, _ *emptypb.Empty) (*sso.GetUsersOut, error)
- func (api *ServerAPI) UpdateUserProfile(ctx context.Context, in *sso.UpdateUserProfileIn) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶ added in v0.1.0
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
GetMe handler returns User according to provided Access Token.
func (*ServerAPI) GetUserByEmail ¶ added in v1.2.1
func (api *ServerAPI) GetUserByEmail(ctx context.Context, in *sso.GetUserByEmailIn) (*sso.GetUserOut, error)
func (*ServerAPI) UpdateUserProfile ¶ added in v1.4.1
Click to show internal directories.
Click to hide internal directories.