github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/mocks/eventsmocks/callbacks.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package eventsmocks 4 5 import ( 6 events "github.com/kaleido-io/firefly/pkg/events" 7 fftypes "github.com/kaleido-io/firefly/pkg/fftypes" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // Callbacks is an autogenerated mock type for the Callbacks type 13 type Callbacks struct { 14 mock.Mock 15 } 16 17 // ConnnectionClosed provides a mock function with given fields: connID 18 func (_m *Callbacks) ConnnectionClosed(connID string) { 19 _m.Called(connID) 20 } 21 22 // DeliveryResponse provides a mock function with given fields: connID, inflight 23 func (_m *Callbacks) DeliveryResponse(connID string, inflight fftypes.EventDeliveryResponse) error { 24 ret := _m.Called(connID, inflight) 25 26 var r0 error 27 if rf, ok := ret.Get(0).(func(string, fftypes.EventDeliveryResponse) error); ok { 28 r0 = rf(connID, inflight) 29 } else { 30 r0 = ret.Error(0) 31 } 32 33 return r0 34 } 35 36 // EphemeralSubscription provides a mock function with given fields: connID, namespace, filter, options 37 func (_m *Callbacks) EphemeralSubscription(connID string, namespace string, filter fftypes.SubscriptionFilter, options fftypes.SubscriptionOptions) error { 38 ret := _m.Called(connID, namespace, filter, options) 39 40 var r0 error 41 if rf, ok := ret.Get(0).(func(string, string, fftypes.SubscriptionFilter, fftypes.SubscriptionOptions) error); ok { 42 r0 = rf(connID, namespace, filter, options) 43 } else { 44 r0 = ret.Error(0) 45 } 46 47 return r0 48 } 49 50 // RegisterConnection provides a mock function with given fields: connID, matcher 51 func (_m *Callbacks) RegisterConnection(connID string, matcher events.SubscriptionMatcher) error { 52 ret := _m.Called(connID, matcher) 53 54 var r0 error 55 if rf, ok := ret.Get(0).(func(string, events.SubscriptionMatcher) error); ok { 56 r0 = rf(connID, matcher) 57 } else { 58 r0 = ret.Error(0) 59 } 60 61 return r0 62 }