Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemCallback ¶
type ItemCallback func(ctx context.Context, item QueuedItem) error
ItemCallback is the type of the callback functions
type QueuedItem ¶
QueuedItem contains basic data
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains the base url for the endpoints
func (*Service) HandleRequest ¶
HandleRequest handles the request after it has been returned
func (*Service) OnRequest ¶
func (s *Service) OnRequest(callback ItemCallback)
OnRequest register a callback to trigger when the task is returned
Click to show internal directories.
Click to hide internal directories.