add rpc package comments
This commit is contained in:
		| @@ -1,9 +1,11 @@ | |||||||
|  | // Package rpc provides an rpc client | ||||||
| package rpc | package rpc | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"github.com/micro/go-micro/client" | 	"github.com/micro/go-micro/client" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // NewClient returns a new micro client interface | ||||||
| func NewClient(opts ...client.Option) client.Client { | func NewClient(opts ...client.Option) client.Client { | ||||||
| 	return client.NewClient(opts...) | 	return client.NewClient(opts...) | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,9 +1,11 @@ | |||||||
|  | // Package rpc provides an rpc server | ||||||
| package rpc | package rpc | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"github.com/micro/go-micro/server" | 	"github.com/micro/go-micro/server" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | // NewServer returns a micro server interface | ||||||
| func NewServer(opts ...server.Option) server.Server { | func NewServer(opts ...server.Option) server.Server { | ||||||
| 	return server.NewServer(opts...) | 	return server.NewServer(opts...) | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user