Function是路由Handler,即處理函數(shù),它通過(guò) ws.Get(subPath).To(function) 的方式加入。Filters實(shí)現(xiàn)了個(gè)類似gRPC攔截器的東西,也類似go-chassis的chain。1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 type Route struct { Method string Produces []string Consumes []string Path ...
www.dbjr.com.cn/article/1371...htm 2025-5-19