...
Code | Comment |
---|---|
| |
defer pool.Put(rnibInstance) | |
m, err := rnibInstance.sdl.Get([]string{ keyToCheck }) | USE SDL to fetch data from REDIS. RETURNS: (map[string]interface{}, error) |
data, ok := m[keyToCheck] | Get the value of the requested key. This will be a byte array |
pb := &RespondingNode{} | Create a new pointer to the responding node |
proto.Unmarshal(data, pb) | Unmarshal parses the protocol buffer representation in buf and places the decoded result in pb |
return pb |
4. Sequence Diagram
...