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

Method Serialize

cmd/cql-proxy/model/task.go:142–150  ·  view source on GitHub ↗

Serialize marshal task object to bytes form.

()

Source from the content-addressed store, hash-verified

140
141// Serialize marshal task object to bytes form.
142func (t *Task) Serialize() (err error) {
143 if t.RawArgs, err = json.Marshal(t.Args); err != nil {
144 return
145 }
146
147 t.RawResult, err = json.Marshal(t.Result)
148
149 return
150}
151
152// Deserialize unmarshal task object from bytes form in database.
153func (t *Task) Deserialize() (err error) {

Callers 13

PreUpdateMethod · 0.95
PreInsertMethod · 0.95
TestConfFunction · 0.45
createNodesWithPublicKeyFunction · 0.45
nonceLoopFunction · 0.45
nonceGenFunction · 0.45
runGenerateFunction · 0.45
GenBPIPv6Method · 0.45
TestIPv6SeedFunction · 0.45
TestGenTestNetDomainFunction · 0.45

Calls 1

MarshalMethod · 0.80

Tested by 7

TestConfFunction · 0.36
createNodesWithPublicKeyFunction · 0.36
TestIPv6SeedFunction · 0.36
TestGenTestNetDomainFunction · 0.36
createLocalNodesFunction · 0.36