Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Type ActionType CategoryTitle string FeedURL string }
Action represents an action to be performed to sync the local and remote state.
type ActionSorter ¶
type ActionSorter []Action
ActionSorter sorts actions by type and then by relevant fields within each type.
func (ActionSorter) Less ¶
func (a ActionSorter) Less(i int, j int) bool
Less implements the sort.Interface.
func (ActionSorter) Swap ¶
func (a ActionSorter) Swap(i int, j int)
Swap implements the sort.Interface.
type ActionType ¶
type ActionType string
ActionType represents the type of action to be performed.
const ( // CreateCategory represents an action to create a category. CreateCategory ActionType = "CreateCategory" // CreateFeed represents an action to create a feed. CreateFeed ActionType = "CreateFeed" // DeleteCategory represents an action to delete a category. DeleteCategory ActionType = "DeleteCategory" // DeleteFeed represents an action to delete a feed. DeleteFeed ActionType = "DeleteFeed" )
type State ¶
State represents either the current remote state of Miniflux, or the intended local state of Miniflux.
func (State) CategoryExists ¶
CategoryExists checks if a category exists in the state.
func (State) CategoryTitles ¶
CategoryTitles returns a list of all category titles in the state.
func (State) FeedExists ¶
FeedExists checks if a feed URL exists in a specific category.
Click to show internal directories.
Click to hide internal directories.