github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/worker/uniter/timer.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package uniter
     5  
     6  import (
     7  	"time"
     8  )
     9  
    10  // Signal is the signature of a function used to generate a
    11  // hook signal.
    12  type TimedSignal func(now, lastSignal time.Time, interval time.Duration) <-chan time.Time