diff options
Diffstat (limited to 'system/item/item.go')
-rw-r--r-- | system/item/item.go | 4 |
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. |