Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { // Authentication management SaveUser(user User) error GetUser() (User, error) // Feed management GetFeeds() ([]Feed, error) AddFeed(feed Feed) error RemoveFeed(url string) error // Scrape management AddScrapedURL(url string) error IsScrapedURL(url string) (bool, error) // Close config provider after use Close() error }
Config defines the required methods for a config backend
func GetConfigProvider ¶
GetConfigProvider returns the current config provider used for this session. Depends in the cli flags used when calling the program.
func NewFileConfig ¶
NewFileConfig returns a new config backend based on a file (yaml)
func NewPostgresConfig ¶
NewPostgresConfig creates a new config backend where postgres is used for storage
Click to show internal directories.
Click to hide internal directories.