Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryForm ¶
type CategoryForm struct {
Title string
}
CategoryForm represents a feed form in the UI
func NewCategoryForm ¶
func NewCategoryForm(r *http.Request) *CategoryForm
NewCategoryForm returns a new CategoryForm.
func (CategoryForm) Merge ¶
func (c CategoryForm) Merge(category *model.Category) *model.Category
Merge update the given category fields.
func (CategoryForm) Validate ¶
func (c CategoryForm) Validate() error
Validate makes sure the form values are valid.
type FeedForm ¶
type FeedForm struct { FeedURL string SiteURL string Title string ScraperRules string RewriteRules string Crawler bool CategoryID int64 }
FeedForm represents a feed form in the UI
func NewFeedForm ¶
NewFeedForm parses the HTTP request and returns a FeedForm
func (FeedForm) ValidateModification ¶
ValidateModification validates FeedForm fields
type IntegrationForm ¶
type IntegrationForm struct { PinboardEnabled bool PinboardToken string PinboardTags string PinboardMarkAsUnread bool InstapaperEnabled bool InstapaperUsername string InstapaperPassword string FeverEnabled bool FeverUsername string FeverPassword string WallabagEnabled bool WallabagURL string WallabagClientID string WallabagClientSecret string WallabagUsername string WallabagPassword string NunuxKeeperEnabled bool NunuxKeeperURL string NunuxKeeperAPIKey string PocketEnabled bool PocketAccessToken string PocketConsumerKey string }
IntegrationForm represents user integration settings form.
func NewIntegrationForm ¶
func NewIntegrationForm(r *http.Request) *IntegrationForm
NewIntegrationForm returns a new AuthForm.
func (IntegrationForm) Merge ¶
func (i IntegrationForm) Merge(integration *model.Integration)
Merge copy form values to the model.
type SettingsForm ¶
type SettingsForm struct { Username string Password string Confirmation string Theme string Language string Timezone string EntryDirection string }
SettingsForm represents the settings form.
func NewSettingsForm ¶
func NewSettingsForm(r *http.Request) *SettingsForm
NewSettingsForm returns a new SettingsForm.
func (*SettingsForm) Merge ¶
func (s *SettingsForm) Merge(user *model.User) *model.User
Merge updates the fields of the given user.
func (*SettingsForm) Validate ¶
func (s *SettingsForm) Validate() error
Validate makes sure the form values are valid.
type SubscriptionForm ¶
SubscriptionForm represents the subscription form.
func NewSubscriptionForm ¶
func NewSubscriptionForm(r *http.Request) *SubscriptionForm
NewSubscriptionForm returns a new SubscriptionForm.
func (*SubscriptionForm) Validate ¶
func (s *SubscriptionForm) Validate() error
Validate makes sure the form values are valid.
type UserForm ¶
UserForm represents the user form.
func (UserForm) ValidateCreation ¶
ValidateCreation validates user creation.
func (UserForm) ValidateModification ¶
ValidateModification validates user modification.