icon.go 521 B

12345678910111213141516171819
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package model
  5. // Icon represents a website icon (favicon)
  6. type Icon struct {
  7. ID int64 `json:"id"`
  8. Hash string `json:"hash"`
  9. MimeType string `json:"mime_type"`
  10. Content []byte `json:"content"`
  11. }
  12. // FeedIcon is a jonction table between feeds and icons
  13. type FeedIcon struct {
  14. FeedID int64 `json:"feed_id"`
  15. IconID int64 `json:"icon_id"`
  16. }