nip94

package
v0.0.0-...-2ba5295 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 2 Imported by: 0

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
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL