From 36441a63a3e1886fdaed5ae9f4bcc05c18d52a11 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 30 Dec 2016 02:04:50 -0800 Subject: adding Hideable interface and initial implementation, allowing user to define content that can be kept private --- system/item/item.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system/item') 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 -- cgit v1.2.3