feed

package
v0.0.0-...-33d7cd8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesktopNotificationHolder

type DesktopNotificationHolder struct {
	Type DesktopNotificationType
	Data string
}

type DesktopNotificationType

type DesktopNotificationType uint
const (
	DesktopNotificationNone DesktopNotificationType = iota
	DesktopNotificationFollower
	DesktopNotificationFavorite
	DesktopNotificationMention
	DesktopNotificationUpdate
	DesktopNotificationBoost
	DesktopNotificationPoll
	DesktopNotificationPost
)

type Feed

type Feed struct {
	Update chan DesktopNotificationHolder
	// contains filtered or unexported fields
}

func NewBlocking

func NewBlocking(ac *api.AccountClient, cnf *config.Config) *Feed

func NewBookmarks

func NewBookmarks(ac *api.AccountClient, cnf *config.Config) *Feed

func NewBoosts

func NewBoosts(ac *api.AccountClient, cnf *config.Config, id mastodon.ID) *Feed

func NewConversations

func NewConversations(ac *api.AccountClient, cnf *config.Config) *Feed

func NewFavorites

func NewFavorites(ac *api.AccountClient, cnf *config.Config) *Feed

func NewFavoritesStatus

func NewFavoritesStatus(ac *api.AccountClient, cnf *config.Config, id mastodon.ID) *Feed

func NewFollowRequests

func NewFollowRequests(ac *api.AccountClient, cnf *config.Config) *Feed

func NewFollowers

func NewFollowers(ac *api.AccountClient, cnf *config.Config, id mastodon.ID) *Feed

func NewFollowing

func NewFollowing(ac *api.AccountClient, cnf *config.Config, id mastodon.ID) *Feed

func NewHistory

func NewHistory(ac *api.AccountClient, cnf *config.Config, status *mastodon.Status) *Feed

func NewList

func NewList(ac *api.AccountClient, cnf *config.Config, list *mastodon.List, hideBoosts bool, hideReplies bool) *Feed

func NewListList

func NewListList(ac *api.AccountClient, cnf *config.Config) *Feed

func NewMuting

func NewMuting(ac *api.AccountClient, cnf *config.Config) *Feed

func NewNotifications

func NewNotifications(ac *api.AccountClient, cnf *config.Config, hideBoosts bool, hideReplies bool) *Feed

func NewNotificationsMentions

func NewNotificationsMentions(ac *api.AccountClient, cnf *config.Config) *Feed

func NewTag

func NewTag(ac *api.AccountClient, cnf *config.Config, search string, hideBoosts bool, hideReplies bool) *Feed

func NewTags

func NewTags(ac *api.AccountClient, cnf *config.Config) *Feed

func NewThread

func NewThread(ac *api.AccountClient, cnf *config.Config, status *mastodon.Status) *Feed

func NewTimelineFederated

func NewTimelineFederated(ac *api.AccountClient, cnf *config.Config, hideBoosts bool, hideReplies bool) *Feed

func NewTimelineHome

func NewTimelineHome(ac *api.AccountClient, cnf *config.Config, hideBoosts bool, hideReplies bool) *Feed

func NewTimelineHomeSpecial

func NewTimelineHomeSpecial(ac *api.AccountClient, cnf *config.Config, hideBoosts bool, hideReplies bool) *Feed

func NewTimelineLocal

func NewTimelineLocal(ac *api.AccountClient, cnf *config.Config, hideBoosts bool, hideReplies bool) *Feed

func NewUserProfile

func NewUserProfile(ac *api.AccountClient, cnf *config.Config, user *api.User) *Feed

func NewUserSearch

func NewUserSearch(ac *api.AccountClient, cnf *config.Config, search string) *Feed

func NewUsersAddList

func NewUsersAddList(ac *api.AccountClient, cnf *config.Config, list *mastodon.List) *Feed

func NewUsersInList

func NewUsersInList(ac *api.AccountClient, cnf *config.Config, list *mastodon.List) *Feed

func (*Feed) Clear

func (f *Feed) Clear()

func (*Feed) Close

func (f *Feed) Close()

func (*Feed) Delete

func (f *Feed) Delete(id uint)

func (*Feed) HasStream

func (f *Feed) HasStream() bool

func (*Feed) Item

func (f *Feed) Item(index int) (api.Item, error)

func (*Feed) List

func (f *Feed) List() []api.Item

func (*Feed) LoadNewer

func (f *Feed) LoadNewer()

func (*Feed) LoadOlder

func (f *Feed) LoadOlder()

func (*Feed) Name

func (f *Feed) Name() string

func (*Feed) StickyCount

func (f *Feed) StickyCount() int

func (*Feed) Type

func (f *Feed) Type() config.FeedType

func (*Feed) Updated

func (f *Feed) Updated(nt DesktopNotificationHolder)

type LoadingLock

type LoadingLock struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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