New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tarsgo 好像不能使用 http middleware? #100
Comments
可以用,下面是个例子:
|
好的,感谢 🙏 |
Hi, @defool @sandyskies 这种方式虽然可以使用中间件,但是目前tars监控上,所有的 “接口名”,都变成了 /。 能帮忙看下吗? |
可以把注册在gorilla上的 route,再多注册一次到 TarsHtppMux上就可以部分解决该问题。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tars.AddHttpServant() 的第一个参数是 TarsHttpMux struct
所以好像不能使用像 Alice - https://github.com/justinas/alice
或者 gorilla - https://github.com/gorilla/mux
这种middleware?
能改成interface吗?这样用户可以定制自己的TarsHttpMux来使用 自己想要的middleware?
The text was updated successfully, but these errors were encountered: