server: register in the services namespace (#1718)
This commit is contained in:
		| @@ -26,6 +26,7 @@ type Options struct { | ||||
| 	Address      string | ||||
| 	Advertise    string | ||||
| 	Id           string | ||||
| 	Namespace    string | ||||
| 	Version      string | ||||
| 	HdlrWrappers []HandlerWrapper | ||||
| 	SubWrappers  []SubscriberWrapper | ||||
| @@ -106,6 +107,13 @@ func Name(n string) Option { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Namespace to register handlers in | ||||
| func Namespace(n string) Option { | ||||
| 	return func(o *Options) { | ||||
| 		o.Namespace = n | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Unique server id | ||||
| func Id(id string) Option { | ||||
| 	return func(o *Options) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user