Documentation ¶
Index ¶
- func Init()
- func PauseRecover()
- func Stop()
- type Matrix
- func (matrix *Matrix) CanStop() bool
- func (matrix *Matrix) DoHistory(req *request.Request, ok bool) bool
- func (matrix *Matrix) Free()
- func (matrix *Matrix) Len() int
- func (matrix *Matrix) Pull() (req *request.Request)
- func (matrix *Matrix) Push(req *request.Request)
- func (matrix *Matrix) TryFlushFailure()
- func (matrix *Matrix) TryFlushSuccess()
- func (matrix *Matrix) Use()
- func (matrix *Matrix) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matrix ¶
a Spider instance's request matrix
func (*Matrix) DoHistory ¶
Returns whether the request was added as a new failure to the end of the queue
func (*Matrix) Pull ¶
From the queue to take out the request, there is no return to nil, concurrent security
func (*Matrix) TryFlushFailure ¶
func (matrix *Matrix) TryFlushFailure()
Non-server mode to save the history of failure records
func (*Matrix) TryFlushSuccess ¶
func (matrix *Matrix) TryFlushSuccess()
Non-server mode to save the history of success records
Click to show internal directories.
Click to hide internal directories.