Documentation ¶
Index ¶
- type CamResult
- type CapsulGlobalHealthCheckRequest
- type CapsulGlobalHealthCheckResponse
- type CapsulHealthCheckResponse
- type CustomExecutionRequest
- type CustomExecutionResponse
- type DataDrop
- type DefaultResponse
- type GetPathologyAL
- type GetPathologyALResponse
- type GetSpecPoolGrid
- type GetSpecPoolGridResponse
- type GetStatus
- type InferenceResult
- type Job
- type JobResult
- type LoginData
- type ProcessImage
- type ProcessResult
- type RunImageCam
- type RunImageInference
- type ServiceStatus
- type SignupData
- type StatusResult
- type TestRequest
- type TestResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CamResult ¶
type CamResult struct { Output string `json:"output"` URL string `json:"url,omitempty"` ModelID string `json:"model_id"` RoundTrip time.Duration `json:"round_trip"` }
CamResult .
type CapsulGlobalHealthCheckRequest ¶
type CapsulGlobalHealthCheckRequest struct {
Id string `json:"id"`
}
CapsulGlobalHealthCheckRequest .
type CapsulGlobalHealthCheckResponse ¶
type CapsulGlobalHealthCheckResponse struct { RoundTrip time.Duration `json:"round_trip"` Report []*CapsulHealthCheckResponse `json:"report"` }
CapsulGlobalHealthCheckResponse .
type CustomExecutionRequest ¶
type CustomExecutionRequest struct { Id string `json:"id" valid:"required"` Name string `json:"name" valid:"required"` Jobs []*Job `json:"jobs"` Concurrency bool `json:"concurrency"` MaxGoroutines int `json:"max_goroutines"` Context string `json:"context" valid:"required"` }
CustomExecutionRequest .
type CustomExecutionResponse ¶
type CustomExecutionResponse struct { Id string `json:"id"` Name string `json:"name"` Success bool `json:"success"` RoundTrip time.Duration `json:"round_trip"` ExecutionRoundTrip time.Duration `json:"execution_round_trip"` Jobs []*JobResult `json:"jobs"` Errors []string `json:"errors"` Warnings []string `json:"warnings"` }
CustomExecutionResponse .
type DefaultResponse ¶
type DefaultResponse struct { Success bool `json:"success"` Data interface{} `json:"data,omitempty"` Warnings []string `json:"warnings,omitempty"` Errors []string `json:"errors,omitempty"` }
DefaultResponse .
func Fail ¶
func Fail(errors ...error) *DefaultResponse
Fail return a non success reponse with success = false adding all passed errors to the response example {"success" : false, "errors": ["can't find my self", "where am i "]}
func Success ¶
func Success() *DefaultResponse
Success return a success json response equavalent to {"success" : true}
func SuccessData ¶
func SuccessData(data interface{}) *DefaultResponse
SuccessData return a success json response with extra data informations example: {"success" : true, "data": {"name": "r1", "test": true}}
type GetPathologyAL ¶
type GetPathologyAL struct {
Pathology string `json:"pathology" valid:"required"`
}
GetPathologyAL .
type GetPathologyALResponse ¶
type GetPathologyALResponse struct { Pathology string `json:"pathology"` Table interface{} `json:"table"` }
GetPathologyALResponse .
type GetSpecPoolGrid ¶
type GetSpecPoolGrid struct {
Ignore []string `json:"ignore"`
}
GetSpecPoolGrid .
type GetSpecPoolGridResponse ¶
type GetSpecPoolGridResponse struct {
Specs interface{} `json:"specs"`
}
GetSpecPoolGridResponse .
type GetStatus ¶
type GetStatus struct {
ModelID string `json:"model_id" valid:"required"`
}
GetStatus .
type InferenceResult ¶
type InferenceResult struct { Keys []string `json:"keys"` Scores []float32 `json:"scores"` ModelID string `json:"model_id"` RoundTrip time.Duration `json:"round_trip"` }
InferenceResult .
type Job ¶
type Job struct { Name string `json:"name"` Requires string `json:"requires"` Function string `json:"function"` InferenceParams RunImageInference `json:"inference_params"` CamParams RunImageCam `json:"cam_params"` Context string `json:"context"` }
Job .
type JobResult ¶
type JobResult struct { Name string `json:"name"` Success bool `json:"success"` Errors []string `json:"errors"` Warnings []string `json:"warnings"` RoundTrip time.Duration `json:"round_trip"` CamResult CamResult `json:"cam_result"` InferenceResult InferenceResult `json:"inference_result"` }
JobResult .
type LoginData ¶
type LoginData struct { Username string `json:"username" valid:"required"` Password string `json:"password" valid:"required"` }
LoginData .
type ProcessImage ¶
type ProcessImage struct { Id int `json:"id"` Target string `json:"target"` NumPreds string `json:"numpreds"` Output string `json:"output"` ModelID string `json:"model_id"` }
ProcessImage .
type ProcessResult ¶
type ProcessResult struct { Inference *InferenceResult `json:"inference,omitempty"` Cam *CamResult `json:"cam,omitempty"` ModelID string `json:"model_id"` Timing time.Duration `json:"timing"` }
ProcessResult .
type RunImageCam ¶
type RunImageCam struct { Id int `json:"id"` Target string `json:"target" valid:"required"` Output string `json:"output"` Force bool `json:"force"` ModelID string `json:"model_id" valid:"required"` }
RunImageCam .
type RunImageInference ¶
type RunImageInference struct { Id int `json:"id"` Image string `json:"image"` File string `json:"file"` NumPreds string `json:"numpreds"` ModelID string `json:"model_id"` }
RunImageInference .
type ServiceStatus ¶
type ServiceStatus struct { Healthy bool `json:"healthy"` UnixTime int64 `json:"unix_time"` RoundTrip time.Duration `json:"round_trip"` }
ServiceStatus .
type SignupData ¶
type SignupData struct { Secret string `json:"secret" valid:"required"` Email string `json:"email" valid:"email"` Username string `json:"username" valid:"required"` Password string `json:"password" valid:"required"` PasswordConfirm string `json:"passwordc" valid:"required"` }
SignupData .
type StatusResult ¶
type StatusResult struct { ModelID string `json:"model_id"` Status string `json:"status"` Version int64 `json:"version"` RoundTrip time.Duration `json:"round_trip"` }
StatusResult .
type TestRequest ¶
TestRequest .