Create init method on provider interface
This commit is contained in:
parent
b2a57ca1f3
commit
027093a5a5
52 changed files with 2760 additions and 131 deletions
20
vendor/code.cloudfoundry.org/clock/ticker.go
generated
vendored
Normal file
20
vendor/code.cloudfoundry.org/clock/ticker.go
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
package clock
|
||||
|
||||
import "time"
|
||||
|
||||
type Ticker interface {
|
||||
C() <-chan time.Time
|
||||
Stop()
|
||||
}
|
||||
|
||||
type realTicker struct {
|
||||
t *time.Ticker
|
||||
}
|
||||
|
||||
func (t *realTicker) C() <-chan time.Time {
|
||||
return t.t.C
|
||||
}
|
||||
|
||||
func (t *realTicker) Stop() {
|
||||
t.t.Stop()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue