Just so you know Eventing and SGW sharing the same bucket (or keyspace) can create some headaches please refer to Unable to deploy a source mutating Eventing Function when Sync Gateway is deployed on same source bucket for work arounds
Best
Jon Strabala