Replies: 3 comments
-
@xqbumu mortar/http/server/oneport_test.go Line 54 in 7f6b4dd |
Beta Was this translation helpful? Give feedback.
-
the example I have read. If we can just replace server.newWebService in https://github.com/go-masonry/mortar/blob/master/http/server/builders.go#L224, we could switch oneport server and multiport server conveniently. maybe I should fork mortar and write a demo when I have part time. sorry for my poor english. mortar is very nice. ^_^ |
Beta Was this translation helpful? Give feedback.
-
It is possible using the same builder. You just need to pass the "same"
|
Beta Was this translation helpful? Give feedback.
-
Does it ok to use oneport service more conveniently by replace newWebService and extend server.webService ?
https://github.com/go-masonry/mortar/blob/master/constructors/service.go#L24
https://github.com/go-masonry/mortar/blob/master/http/server/builders.go#L224
thanks
Beta Was this translation helpful? Give feedback.
All reactions