summaryrefslogtreecommitdiff
path: root/system/item
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-08-15 13:39:00 -0600
committerSteve Manuel <nilslice@gmail.com>2017-08-15 15:14:52 -0600
commit075aba63ff98f6f16383f27895856da1569761c4 (patch)
treedb6ae78b4770ae728d7c5623cb1214d4ef006910 /system/item
parent4818fd1fd68f6c8f1afe0c730cf4bca1861e6589 (diff)
update Omittable, Pushable, interface to take res, req pair like Hooks, update implementations & hydrate items
Diffstat (limited to 'system/item')
-rw-r--r--system/item/item.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/item/item.go b/system/item/item.go
index f2e8209..beace09 100644
--- a/system/item/item.go
+++ b/system/item/item.go
@@ -95,7 +95,7 @@ type Hideable interface {
// should be the json tag names of the struct fields to which they correspond.
type Pushable interface {
// the values contained by fields returned by Push must strictly be URL paths
- Push() []string
+ Push(http.ResponseWriter, *http.Request) ([]string, error)
}
// Omittable lets a user define certin fields within a content struct to remove
@@ -103,7 +103,7 @@ type Pushable interface {
// shown or available from the content API. All items in the slice should be the
// json tag names of the struct fields to which they correspond.
type Omittable interface {
- Omit() []string
+ Omit(http.ResponseWriter, *http.Request) ([]string, error)
}
// Item should only be embedded into content type structs.