resulthdl

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseBodyDTO

type ResponseBodyDTO *domain.JobResult

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

Delete deletes a job result.

func (*ResultgRPCHandler) Get

Get fetches a job result.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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