3badd4c35c
Whenever autopilot updates its state it notifies Consul. That notification will then trigger Consul to extract out the ready server information. If the ready servers have changed, then an event will be published to notify any subscribers of the full set of ready servers. All these ready server event things are contained within an autopilotevents package instead of the consul package to make importing them into the grpc related packages possible
29 lines
519 B
Go
29 lines
519 B
Go
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
package autopilotevents
|
|
|
|
import (
|
|
time "time"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// mockTimeProvider is an autogenerated mock type for the timeProvider type
|
|
type mockTimeProvider struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Now provides a mock function with given fields:
|
|
func (_m *mockTimeProvider) Now() time.Time {
|
|
ret := _m.Called()
|
|
|
|
var r0 time.Time
|
|
if rf, ok := ret.Get(0).(func() time.Time); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(time.Time)
|
|
}
|
|
|
|
return r0
|
|
}
|