summaryrefslogtreecommitdiff
path: root/system/item
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-08-15 15:43:49 -0600
committerGitHub <noreply@github.com>2017-08-15 15:43:49 -0600
commitc9a6c2ef34d4c290223963d6e836926c6b58eb1b (patch)
tree5344df00833337f3b16e59ef80ffdf2efa5b0a5e /system/item
parent4818fd1fd68f6c8f1afe0c730cf4bca1861e6589 (diff)
parent9a14fd72fe0c771d45c79069c65ac9a7170dcaf2 (diff)
Merge pull request #184 from ponzu-cms/ponzu-dev
[core] update Omittable, Pushable interfaces and implementations to take res/req pair and hydrate item for caller
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.