Documentation
¶
Index ¶
Constants ¶
View Source
const HelloServiceName = "path/to/pkg.HelloService"
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloService ¶
func RegisterHelloService(server *rpc.Server, svc HelloServiceInterface) error
Types ¶
type HelloService ¶
type HelloService struct{}
type HelloServiceInterface ¶
func NewHelloServiceClient ¶
func NewHelloServiceClient(cc *rpc.Client) HelloServiceInterface
type ServerCloser ¶
type ServerCloser func()
func StartGobRpcServer ¶
func StartGobRpcServer(addr string) (ServerCloser, error)
func StartHttpJsonRpcServer ¶
func StartHttpJsonRpcServer(addr string) (ServerCloser, error)
func StartJsonRpcServer ¶
func StartJsonRpcServer(addr string) (ServerCloser, error)
func StartRawHttpJsonRpcServer ¶
func StartRawHttpJsonRpcServer(addr string) (ServerCloser, error)
Click to show internal directories.
Click to hide internal directories.