Documentation ¶
Overview ¶
Package queue implement a producer consumer queue for lossless models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQueueFill ¶
func GetQueueFill() int
Types ¶
type QueuedJob ¶
type QueuedJob struct { Request *types.ServiceRequest Semaphore *utils.Semaphore Response *faas.APIResponse Timings *Timings }
func EnqueueJob ¶
func EnqueueJob(request *types.ServiceRequest) (*QueuedJob, error)
EnqueueJob enqueues the passed job in the queue and it blocks the caller until the job has been executed
type Timings ¶
type Timings struct { ExecutionTime float64 `json:"execution_time"` // the time of executing the job comprising the GET to openfaas FaasExecutionTime float64 `json:"faas_execution_time"` // the execution time as it is told by openfaas QueueTime float64 `json:"queue_time"` // the time in which the job remains in the local queue (comprises the execution time) }
Click to show internal directories.
Click to hide internal directories.