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