github.com/jeffjen/go-libkv@v0.0.0-20151212051932-5df59a45a168/timer/interface.go (about)

     1  package timer
     2  
     3  // HandlerFunc is a wrapper type for standard function
     4  type HandlerFunc func(int64)
     5  
     6  func (e HandlerFunc) Done(jobId int64) {
     7  	e(jobId)
     8  }
     9  
    10  // Handler is the standard interface for Timer scheduler
    11  type Handler interface {
    12  	Done(jobId int64)
    13  }