Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAllItems ¶
func DeleteAllItems(c interface{}) error
DeleteAllItems deletes all items from datastore
func NamespaceIsEmpty ¶
NamespaceIsEmpty checks if there is already an item in a namespace
Types ¶
type Item ¶
type Item struct { Caption string `json:"caption" datastore:"Caption,noindex"` URL string `json:"url" datastore:"URL,index"` Via string `json:"via" datastore:"Via,noindex"` ImageURL string `json:"imageURL" datastore:"ImageURL,noindex"` Description string `json:"description" datastore:"Description,noindex"` CreatedAt time.Time `json:"createdat" datastore:"CreatedAt,index"` Namespace string `json:"-" datastore:"Namespace,index"` }
An Item is all the data we store from a website
Click to show internal directories.
Click to hide internal directories.