Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMetadata ¶
type FileMetadata struct { Magnet string Dim string Size string Summary string Image string URL string M string X string OX string TorrentInfoHash string Blurhash string Thumb string Content string }
func ParseFileMetadata ¶
func ParseFileMetadata(event nostr.Event) FileMetadata
func (FileMetadata) DisplayImage ¶
func (fm FileMetadata) DisplayImage() string
func (FileMetadata) IsImage ¶
func (fm FileMetadata) IsImage() bool
func (FileMetadata) IsVideo ¶
func (fm FileMetadata) IsVideo() bool
func (FileMetadata) ToTags ¶
func (fm FileMetadata) ToTags() nostr.Tags
Click to show internal directories.
Click to hide internal directories.