Files
vex/tui/models/feed.go
T
2024-05-05 19:54:18 +02:00

31 lines
616 B
Go

package models
import (
"fmt"
"time"
"github.com/google/uuid"
)
type Feed struct {
Id uuid.UUID `json:"id"`
Name string `json:"name"`
Url string `json:"link"`
FaviconUrl string `json:"faviconUrl"`
Tags []string `json:"tags"`
AddedDate time.Time `json:"addedDate"`
SubmitterId uuid.UUID `json:"submitterId"`
}
func (f Feed) FilterValue() string {
return f.Name
}
func (f Feed) Title() string {
return f.Name
}
func (f Feed) Description() string {
return fmt.Sprintf("%s", "my desc") // TODO: real description (tags, submitter, error status, last sync)
}