summaryrefslogtreecommitdiff
path: root/content/item.go
blob: 7bb25dba2fdc7642ccd876e832e89c58b0a0056b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package content

// Item should only be embedded into content type structs.
type Item struct {
	ID        int    `json:"id"`
	Slug      string `json:"slug"`
	Timestamp int64  `json:"timestamp"`
	Updated   int64  `json:"updated"`
}

// Time implements the Sortable interface
func (i Item) Time() int64 {
	return i.Timestamp
}