Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerTask ¶
func (HandlerTask) Add ¶
func (h HandlerTask) Add(s string, i int)
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) Handle ¶
Handle is register and handle new job Handle take 2 parameter is job path and Task interface that implement Add(string, int) function
func (*Job) HandleFunc ¶
func (j *Job) HandleFunc(s string, h HandlerTask)
Click to show internal directories.
Click to hide internal directories.