Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { HaveURL(url string) bool AddURL(url string) error AddURLs(url []string) error MarkURL(url string) error GetRandomURL(unseenOnly bool) (string, error) Close() }
Interface provides a standardized set of functions that can be performed on a data storage backend.
type SQLStore ¶
type SQLStore struct { Store // contains filtered or unexported fields }
SQLStore is a backend that supports SQL-based databases (but currently is only really useful for SQLite3 files).
func (*SQLStore) GetRandomURL ¶
GetRandomURL returns a single random URL from the database. If unseenOnly is true, it will exclude any URLs that have already been posted to the user's timeline.
Click to show internal directories.
Click to hide internal directories.