Documentation ¶
Index ¶
- func RegisterServer(gRPCServer *grpc.Server, useCases interfaces.UseCases, logger *slog.Logger)
- type ServerAPI
- func (api *ServerAPI) GetMe(ctx context.Context, request *sso.GetMeRequest) (*sso.GetUserResponse, error)
- func (api *ServerAPI) GetUser(ctx context.Context, request *sso.GetUserRequest) (*sso.GetUserResponse, error)
- func (api *ServerAPI) GetUsers(ctx context.Context, request *emptypb.Empty) (*sso.GetUsersResponse, 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
func (api *ServerAPI) GetMe(ctx context.Context, request *sso.GetMeRequest) (*sso.GetUserResponse, error)
GetMe handler returns User according to provided Access Token.
func (*ServerAPI) GetUser ¶
func (api *ServerAPI) GetUser(ctx context.Context, request *sso.GetUserRequest) (*sso.GetUserResponse, error)
GetUser handler returns User according provided data.
Click to show internal directories.
Click to hide internal directories.