Documentation
¶
Index ¶
Constants ¶
View Source
const ( ManualFetchInterval = time.Hour MinFetchInterval = time.Hour MaxFetchInterval = 24 * time.Hour ErrorFetchInterval = time.Hour )
View Source
const ( MaxMediaSize = 10 * 1024 * 1024 MediaDownloadTimeout = 30 * time.Second GlobalImageDownloadTimeout = 2 * time.Minute )
View Source
const (
MaxImagesPerFeedItem = 20
)
Variables ¶
View Source
var ( ErrMediaTooLarge = errors.New("media file exceeds maximum size limit") ErrMediaTimeout = errors.New("media download exceeded timeout limit") )
Functions ¶
func CalculateNextFetchTime ¶
func CreateImageReplacer ¶
Types ¶
type Cleaner ¶
type Cleaner struct{}
func DefaultCleaner ¶
func DefaultCleaner() *Cleaner
func (*Cleaner) CleanField ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func (*Fetcher) FetchMedia ¶
Click to show internal directories.
Click to hide internal directories.