Browse Source

add keyword file to keep keys for internal usage

Xiang Li 12 years ago
parent
commit
ac945c77de
2 changed files with 13 additions and 0 deletions
  1. 6 0
      store/error.go
  2. 7 0
      store/keywords.go

+ 6 - 0
store/error.go

@@ -16,4 +16,10 @@ type TestFail string
 
 func (e TestFail) Error() string {
 	return string(e)
+}
+
+type Keyword string
+
+func (e Keyword) Error() string {
+	return string(e)
 }

+ 7 - 0
store/keywords.go

@@ -0,0 +1,7 @@
+package store
+
+// keywords for internal useage
+var keywords = map[string]bool{
+    "/acoounts": true,
+    "/ephemeralNodes": true,
+}