Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecutorFunc ¶
ExecutorFunc defines the execution function.
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher manages the logic associated with fetch.
func (*Fetcher) AddTask ¶
func (f *Fetcher) AddTask(id string, match MatchFunc, executor ExecutorFunc, expire ExpireFunc)
AddTask adds a fetcher task.
type LimitFetcher ¶
type LimitFetcher struct {
// contains filtered or unexported fields
}
LimitFetcher tag the fetching request that is happening Limit the frequency of the same requests
func NewLimitFetcher ¶
func NewLimitFetcher() *LimitFetcher
NewLimitFetcher returns a new pointer to the LimitFetcher.
Click to show internal directories.
Click to hide internal directories.