MCPcopy
hub / github.com/dosco/graphjin / newGraphJinObj

Function newGraphJinObj

wasm/main.go:91–98  ·  view source on GitHub ↗
(gj *core.GraphJin)

Source from the content-addressed store, hash-verified

89}
90
91func newGraphJinObj(gj *core.GraphJin) map[string]interface{} {
92 return map[string]interface{}{
93 "query": query(gj),
94 "subscribe": subscribe(gj),
95 "queryByName": queryByName(gj),
96 "subscribeByName": subscribeByName(gj),
97 }
98}
99
100func newGraphJin(config *core.Config, db *sql.DB, fs core.FS) (gj *core.GraphJin, err error) {
101 return core.NewGraphJinWithFS(config, db, fs)

Callers 1

graphjinFuncFunction · 0.85

Calls 4

subscribeFunction · 0.85
queryByNameFunction · 0.85
subscribeByNameFunction · 0.85
queryFunction · 0.70

Tested by

no test coverage detected