...

Source file src/code.rocketnine.space/tslocum/sriracha/attachment.go

Documentation: code.rocketnine.space/tslocum/sriracha

     1  package sriracha
     2  
     3  import "time"
     4  
     5  // Attachment represents an attachment. It may be a normal file or a shortcut
     6  // to an external resource via oEmbed.
     7  type Attachment struct {
     8  	ID   int
     9  	Post int
    10  
    11  	File   string
    12  	Size   int64
    13  	Hash   string
    14  	Width  int
    15  	Height int
    16  
    17  	Thumb       string
    18  	ThumbWidth  int
    19  	ThumbHeight int
    20  
    21  	Uploaded time.Time
    22  }
    23  
    24  // TODO support oEmbed instead of file
    25  

View as plain text