Add Namespace Flag to Service (#5)
* added namespace option * added namespace to config struct * use config value * add http-namespace flag * update docs
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
2221c66aba
commit
046fec2033
@@ -13,7 +13,7 @@ func Server(opts ...Option) (http.Service, error) {
|
||||
|
||||
service := http.NewService(
|
||||
http.Logger(options.Logger),
|
||||
http.Namespace("go.micro.web"),
|
||||
http.Namespace(options.Config.HTTP.Namespace),
|
||||
http.Name("konnectd"),
|
||||
http.Version(version.String),
|
||||
http.Address(options.Config.HTTP.Addr),
|
||||
|
||||
Reference in New Issue
Block a user