MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / toJSON

Method toJSON

cmd/cql-fuse/node.go:122–128  ·  view source on GitHub ↗

toJSON returns the json-encoded string for this node.

()

Source from the content-addressed store, hash-verified

120
121// toJSON returns the json-encoded string for this node.
122func (n *Node) toJSON() string {
123 ret, err := json.Marshal(n)
124 if err != nil {
125 panic(err)
126 }
127 return string(ret)
128}
129
130// Attr fills attr with the standard metadata for the node.
131func (n *Node) Attr(_ context.Context, a *fuse.Attr) error {

Callers 2

updateNodeFunction · 0.80
createMethod · 0.80

Calls 1

MarshalMethod · 0.80

Tested by

no test coverage detected