Documentation
¶
Index ¶
- Variables
- type Function
- func (f *Function) Call(inst Instance, id uint32) (err error)
- func (f *Function) CallTime() time.Duration
- func (f *Function) ColdStart() time.Duration
- func (f *Function) Instantiate(ctx context.Context) (Instance, error)
- func (f *Function) MemoryMax() uint64
- func (f *Function) ModulesChanged() error
- func (f *Function) Shutdown()
- type Instance
Constants ¶
This section is empty.
Variables ¶
var ( InstanceMaxRequests int = 64 InstanceMaxError int64 = 5 InstanceErrorCoolDown time.Duration = 30 * time.Minute ShadowMinBuff = 3 ShadowMaxAge time.Duration = 10 * time.Minute ShadowCleanInterval time.Duration = ShadowMaxAge / 2 ShadowMaxWait time.Duration = 1 * time.Second MaxGlobalInstances int64 = 128 * 1024 MemoryThreshold uint64 = 80 )
var DebugFunctionCallsLogger vm.Logger
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, serviceable components.FunctionServiceable) (*Function, error)
func (*Function) Call ¶
Call takes instance and id, then calls the moduled function. Returns an error.
func (*Function) Instantiate ¶
Instantiate returns a runtime, plugin api, and error
func (*Function) ModulesChanged ¶ added in v1.3.0
ModulesChanged returns an error when a module this function loaded now resolves elsewhere, e.g. after a library push that left the config commit alone.