Browse Source

Initial revision.

Bernd Fix 3 months ago
parent
commit
e9e5987842
1 changed files with 25 additions and 0 deletions
  1. 25
    0
      src/gnunet/service/namecache/module.go

+ 25
- 0
src/gnunet/service/namecache/module.go View File

@@ -0,0 +1,25 @@
1
+package namecache
2
+
3
+import (
4
+	"gnunet/service/gns"
5
+)
6
+
7
+//======================================================================
8
+// "GNS name cache" implementation
9
+//======================================================================
10
+
11
+//----------------------------------------------------------------------
12
+// Put and get GNS blocks into/from a cache (transient storage)
13
+//----------------------------------------------------------------------
14
+
15
+// Namecache handles the transient storage of GNS blocks under the query key.
16
+type NamecacheModule struct {
17
+}
18
+
19
+func (nc *NamecacheModule) Get(query *gns.Query) (*gns.GNSBlock, error) {
20
+	return nil, nil
21
+}
22
+
23
+func (nc *NamecacheModule) Put(query *gns.Query, block *gns.GNSBlock) error {
24
+	return nil
25
+}

Loading…
Cancel
Save