Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseBodyDTO ¶
ResponseBodyDTO is the response data transfer object used for a job result retrieval.
func BuildResponseBodyDTO ¶
func BuildResponseBodyDTO(resource *domain.JobResult) ResponseBodyDTO
BuildResponseBodyDTO creates a new ResponseDTO.
type ResultHTTPHandler ¶
type ResultHTTPHandler struct { handler.HTTPHandler // contains filtered or unexported fields }
ResultHTTPHandler is an HTTP handler that exposes result endpoints.
func NewResultHTTPHandler ¶
func NewResultHTTPHandler(resultService port.ResultService) *ResultHTTPHandler
NewResultHTTPHandler creates and returns a new ResultHTTPHandler.
func (*ResultHTTPHandler) Delete ¶
func (hdl *ResultHTTPHandler) Delete(c *gin.Context)
Delete deletes a job result.
func (*ResultHTTPHandler) Get ¶
func (hdl *ResultHTTPHandler) Get(c *gin.Context)
Get fetches a job result.
type ResultgRPCHandler ¶
type ResultgRPCHandler struct { pb.UnimplementedJobResultServer // contains filtered or unexported fields }
ResultgRPCHandler is a gRPC handler that exposes job result endpoints.
func NewResultgRPCHandler ¶
func NewResultgRPCHandler(resultService port.ResultService) *ResultgRPCHandler
NewResultgRPCHandler creates and returns a new JobgRPCHandler.
func (*ResultgRPCHandler) Delete ¶
func (hdl *ResultgRPCHandler) Delete(ctx context.Context, in *pb.DeleteJobResultRequest) (*pb.DeleteJobResultResponse, error)
Delete deletes a job result.
func (*ResultgRPCHandler) Get ¶
func (hdl *ResultgRPCHandler) Get(ctx context.Context, in *pb.GetJobResultRequest) (*pb.GetJobResultResponse, error)
Get fetches a job result.
Click to show internal directories.
Click to hide internal directories.