mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	add ability to set address
This commit is contained in:
		| @@ -122,6 +122,13 @@ func Transport(t transport.Transport) Option { | ||||
|  | ||||
| // Convenience options | ||||
|  | ||||
| // Address sets the address of the server | ||||
| func Address(addr string) Option { | ||||
| 	return func(o *Options) { | ||||
| 		o.Server.Init(server.Address(addr)) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Name of the service | ||||
| func Name(n string) Option { | ||||
| 	return func(o *Options) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user