MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / Close

Method Close

go/engine/node.go:43–43  ·  view source on GitHub ↗

Close releases resources on shutdown. Runner calls this even if Setup failed partway, so implementations should guard nil fields.

()

Source from the content-addressed store, hash-verified

41 // Close releases resources on shutdown. Runner calls this even if Setup
42 // failed partway, so implementations should guard nil fields.
43 Close() error
44}
45
46// Executable is implemented by nodes that run on the state-runner goroutine.

Callers 15

TestHealthFunction · 0.65
TestAvailableModelsFunction · 0.65
TestChatFunction · 0.65
TestChatWithToolsFunction · 0.65
TestChatWithOptionsFunction · 0.65
TestEmbedFunction · 0.65
TestEmbeddingDimensionFunction · 0.65
TestWireFunction · 0.65
TestConfigureFunction · 0.65
CloseMethod · 0.65

Implementers 9

MockTriggergo/engine/mocks_test.go
MockTrigger_Expectergo/engine/mocks_test.go
Tickergo/engine/node/trigger/ticker.go
OnSerialReceivego/engine/node/trigger/serialreceive.g
Alarmgo/engine/node/trigger/alarm.go
OnMqttMessagego/engine/node/trigger/onmqttmessage.g
OnThresholdgo/engine/node/trigger/threshold.go
Delaygo/engine/node/trigger/delay.go
OnPinEdgego/engine/node/trigger/pinedge.go

Calls

no outgoing calls

Tested by 10

TestHealthFunction · 0.52
TestAvailableModelsFunction · 0.52
TestChatFunction · 0.52
TestChatWithToolsFunction · 0.52
TestChatWithOptionsFunction · 0.52
TestEmbedFunction · 0.52
TestEmbeddingDimensionFunction · 0.52
TestWireFunction · 0.52
TestConfigureFunction · 0.52