type go.pact.im/x/clock/fakeclock.Clock
23 uses
go.pact.im/x/clock/fakeclock (current package)
fakeclock.go#L17: } = (*Clock)(nil)
fakeclock.go#L38: type Clock struct {
fakeclock.go#L46: func Unix() *Clock {
fakeclock.go#L52: func Go() *Clock {
fakeclock.go#L60: func Y2038(d time.Duration) *Clock {
fakeclock.go#L66: func Time(now time.Time) *Clock {
fakeclock.go#L67: return &Clock{
fakeclock.go#L74: func (c *Clock) Now() time.Time {
fakeclock.go#L85: func (c *Clock) Next() (time.Time, bool) {
fakeclock.go#L97: func (c *Clock) Set(t time.Time) {
fakeclock.go#L111: func (c *Clock) Add(d time.Duration) time.Time {
fakeclock.go#L127: func (c *Clock) AddDate(years, months, days int) time.Time {
fakeclock.go#L137: func (c *Clock) Schedule(d time.Duration, f func(now time.Time)) clock.Event {
fakeclock.go#L147: func (c *Clock) Timer(d time.Duration) clock.Timer {
fakeclock.go#L159: func (c *Clock) Ticker(d time.Duration) clock.Ticker {
fakeclock.go#L174: func (c *Clock) stop(m moment) bool {
fakeclock.go#L186: func (c *Clock) reset(m moment, d time.Duration, dp *time.Duration) bool {
fakeclock.go#L198: func (c *Clock) schedule(m moment, when time.Time) bool {
fakeclock.go#L209: func (c *Clock) next(now time.Time) time.Time {
fakeclock.go#L231: func (c *Clock) advance(now time.Time) {
fakeclock.go#L247: c *Clock
fakeclock.go#L269: c *Clock
fakeclock.go#L299: c *Clock
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)