- module/chi: support Router.With(...) feature backend by mir's chain func tag info
- mir: support field tag string for online chain function information. eg:
// entry mux style URN entry
type muxEntry struct {
chainFunc1 Get `mir:"/chainfunc1/#-ChainFunc"`
chainFunc2 Get `mir:"/chainfunc2/#GetChainFunc2&ChainFunc"`
}
func (*muxEntry) ChainFunc1() string {
return "/chainfunc1/"
}
func (*muxEntry) GetChainFunc2() string {
return "/chainfunc2/"
}
func (*muxEntry) ChainFunc() []http.handler {
return []http.handler{}
}