The Kronecker Delta can be written as the integral of the complex function $$f(n,z)=\frac{1}{2\pi i} z^{n-1} \ ,$$ where $n\in \mathbb{Z}$ and $z\in\mathbb{C}$ on a closed path $\mathcal{C}$ enclosing the origin $$ \delta_{n,0}= \oint_\mathcal{C} f(n,z) dz \ .$$ This can be seen as a trivial consequence of the Cauchy integral theorem $$ \delta_{n,0}= \oint_\mathcal{C} dz \frac{1}{2\pi i} z^{n-1} = \mathrm{Res}_{z=0}(z^{n-1}) \ .$$ The same function computed for $n=i\eta$ with $\eta\in\mathbb{R}$ and integrated on the real axis
$$ \int_0^\infty dy \, f(i \eta,y) =\int_0^\infty dy \frac{1}{2\pi i} y^{i\eta-1} = \int_{-\infty}^\infty dx \frac{1}{2\pi i} e^{i \eta x} = -i \delta(\eta) \ \ .$$
My question is the following. Is there a master function
$$ G(n) \equiv \int_\gamma dz f(n,z) $$
defined as the integral on some path $\gamma$ such that $G(n)\propto \delta_{n,0}$ and $G(i \eta)\propto \delta(\eta)$?
What are the path and the proportionality constants?
I do not know if it is useful but I noticed that $z^{n-1}$ has a pole also at infinity.