...
Package types
Package types implement all structs used in the project.
type APIResponse struct {
Headers http.Header `json:"headers"`
Body []byte `json:"body"`
StatusCode int `json:"status_code"`
}
type FaasApiResponse struct {
Headers http.Header
Body []byte
StatusCode int
}
type Load struct {
SchedulerName string `json:"scheduler_name"`
FunctionsDeployed uint `json:"functions_deployed"`
FunctionsTotalReplicas uint `json:"functions_total_replicas"`
FunctionsRunning uint `json:"functions_running"`
FunctionsRunningMax uint `json:"functions_running_max"`
QueueLengthMax uint `json:"queue_max_length"`
QueueFill int `json:"queue_fill"`
}
type PeerJobRequest struct {
ServiceIdRequest uint64 `json:"service_id_request"`
ServiceIdTracing string `json:"service_id_tracing"`
FunctionName string `json:"function_name"`
Hops int `json:"hops"`
PeersList []PeersListMember `json:"peers_list"`
Payload string `json:"payload"`
ContentType string `json:"content_type"`
Headers map[string]string `json:"headers"`
}
type PeerJobResponse struct {
PeersList []PeersListMember `json:"peers_list"`
Body string `json:"body"`
StatusCode int `json:"status_code"`
}
type PeersListMember struct {
MachineId string `json:"machine_id"`
MachineIp string `json:"machine_ip"`
Timings Timings `json:"timings"`
}
type SchedulerDescriptor struct {
Name string `json:"name"`
Parameters []string `json:"parameters"`
}
type ServiceRequest struct {
Id uint64
IdTracing string
ServiceName string
ServiceType int64
Payload []byte
PayloadContentType string
Headers *map[string]string
External bool
ExternalJobRequest *PeerJobRequest
}
type Timings struct {
ExecutionTime *float64 `json:"execution_time,omitempty"`
TotalTime *float64 `json:"total_time,omitempty"`
SchedulingTime *float64 `json:"scheduling_time,omitempty"`
ProbingTime *float64 `json:"probing_time,omitempty"`
}
type TimingsStart struct {
ArrivedAt *time.Time `json:"arrived_at,omitempty"`
ProbingStartedAt *time.Time `json:"started_probing_at,omitempty"`
ProbingEndedAt *time.Time `json:"ended_probing_at,omitempty"`
ScheduledAt *time.Time `json:"scheduled_at,omitempty"`
}