feed

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name, user, url, provider string) error

Add a new Feed to an Account.

func All

func All() []*model.Feed

All returns all available Feeds.

func AllFor

func AllFor(acc *model.Account) []*model.Feed

AllFor returns all Feed for an Account.

func FindByID added in v1.2.0

func FindByID(feedID uint) (*model.Feed, error)

FindByID looks up and returns with a Feed by its ID.

func HashTagsFor added in v1.2.0

func HashTagsFor(f *model.Feed) []*model.HashTag

HashTagsFor return all associated HashTags for a Feed.

func PrefixedHashTagValuesFor added in v1.2.0

func PrefixedHashTagValuesFor(f *model.Feed) []string

PrefixedHashTagValuesFor returns with all the HashTags with prefixed (#) array of strings.

Types

type DoesNotExistError added in v1.2.0

type DoesNotExistError struct {
	ID uint
}

DoesNotExistError occues when feed does not exist.

func (DoesNotExistError) Error added in v1.2.0

func (e DoesNotExistError) Error() string

type UserDoesNotExistError

type UserDoesNotExistError struct {
	Name string
}

UserDoesNotExistError occues when user does not exist but we want to assign a feed to it.

func (UserDoesNotExistError) Error

func (e UserDoesNotExistError) Error() string

Jump to

Keyboard shortcuts

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