summaryrefslogtreecommitdiff
path: root/system/item
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-30 02:04:50 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-30 02:04:50 -0800
commit36441a63a3e1886fdaed5ae9f4bcc05c18d52a11 (patch)
tree4a3648d9c92130fa754463c9cec8f665cdc85b53 /system/item
parentcf85a8fdefe71f11aecc6dbbed08f1263d3eb02d (diff)
adding Hideable interface and initial implementation, allowing user to define content that can be kept private
Diffstat (limited to 'system/item')
-rw-r--r--system/item/item.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/item/item.go b/system/item/item.go
index 85ec5f9..761b2cf 100644
--- a/system/item/item.go
+++ b/system/item/item.go
@@ -55,6 +55,11 @@ type Hookable interface {
AfterReject(req *http.Request) error
}
+// Hideable lets a user keep items hidden
+type Hideable interface {
+ Hide(*http.Request) error
+}
+
// Pushable lets a user define which values of certain struct fields are
// 'pushed' down to a client via HTTP/2 Server Push. All items in the slice
// should be the json tag names of the struct fields to which they coorespond