MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / RegisterDynamicResourceDriver

Function RegisterDynamicResourceDriver

gateway/profession.go:14–16  ·  view source on GitHub ↗
(key string, worker Worker)

Source from the content-addressed store, hash-verified

12)
13
14func RegisterDynamicResourceDriver(key string, worker Worker) {
15 dynamicResourceMap[key] = worker
16}
17
18func GetDynamicResourceDriver(key string) (Worker, bool) {
19 v, ok := dynamicResourceMap[key]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected