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
|
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...)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user