Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOW ServiceClass = 0 HIGH_PERFORMANCE = 1 HIGH_AVAILABILITY = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncResponse ¶
type AsyncResponse struct {
ReqId string
}
type ExecutionReport ¶
type Function ¶
type Function struct {
Name string
Runtime string // example: python310
MemoryMB int64 // MB
CPUDemand float64 // 1.0 -> 1 core
Handler string // example: "module.function_name"
TarFunctionCode string // input is .tar
CustomImage string // used if custom runtime is chosen
}
A serverless Function.
func GetFunction ¶
GetFunction retrieves a Function given its name.
func (*Function) SaveToEtcd ¶
type Request ¶
type Request struct {
ReqId string
Fun *Function
Params map[string]interface{}
Arrival time.Time
ExecReport ExecutionReport
RequestQoS
CanDoOffloading bool
Async bool
}
Request represents a single function invocation.
type RequestQoS ¶
type RequestQoS struct {
Class ServiceClass
MaxRespT float64
}
type Response ¶
type Response struct {
Success bool
ExecutionReport
}
type ServiceClass ¶
type ServiceClass int64
Click to show internal directories.
Click to hide internal directories.