code: func (_m *APIClient) Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) {
  	ret := _m.Called(ctx, options)
  
  	var r0 <-chan events.Message
  	if rf, ok := ret.Get(0).(func(context.Context, types.EventsOptions) <-chan events.Message); ok {
  		r0 = rf(ctx, options)
  	} else {
  		if ret.Get(0) != nil {
  			r0 = ret.Get(0).(<-chan events.Message)
  		}
  	}
  
  	var r1 <-chan error
  	if rf, ok := ret.Get(1).(func(context.Context, types.EventsOptions) <-chan error); ok {
  		r1 = rf(ctx, options)
  	} else {
  		if ret.Get(1) != nil {
  			r1 = ret.Get(1).(<-chan error)
  		}
  	}
  
  	return r0, r1
  }
docs: // Events provides a mock function with given fields: ctx, options