enclosure.go 557 B

123456789101112131415161718
  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 // import "miniflux.app/model"
  5. // Enclosure represents an attachment.
  6. type Enclosure struct {
  7. ID int64 `json:"id"`
  8. UserID int64 `json:"user_id"`
  9. EntryID int64 `json:"entry_id"`
  10. URL string `json:"url"`
  11. MimeType string `json:"mime_type"`
  12. Size int64 `json:"size"`
  13. }
  14. // EnclosureList represents a list of attachments.
  15. type EnclosureList []*Enclosure