Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EchoServiceDesc rpc.InterfaceDesc = descEchoService
EchoServiceDesc describes the EchoService interface.
Functions ¶
This section is empty.
Types ¶
type EchoServiceClientMethods ¶
type EchoServiceClientMethods interface {
Echo(_ *context.T, msg string, _ ...rpc.CallOpt) (string, error)
}
EchoServiceClientMethods is the client interface containing EchoService methods.
type EchoServiceClientStub ¶
type EchoServiceClientStub interface { EchoServiceClientMethods rpc.UniversalServiceMethods }
EchoServiceClientStub adds universal methods to EchoServiceClientMethods.
func EchoServiceClient ¶
func EchoServiceClient(name string) EchoServiceClientStub
EchoServiceClient returns a client stub for EchoService.
type EchoServiceServerMethods ¶
type EchoServiceServerMethods interface {
Echo(_ *context.T, _ rpc.ServerCall, msg string) (string, error)
}
EchoServiceServerMethods is the interface a server writer implements for EchoService.
type EchoServiceServerStub ¶
type EchoServiceServerStub interface { EchoServiceServerStubMethods // Describe the EchoService interfaces. Describe__() []rpc.InterfaceDesc }
EchoServiceServerStub adds universal methods to EchoServiceServerStubMethods.
func EchoServiceServer ¶
func EchoServiceServer(impl EchoServiceServerMethods) EchoServiceServerStub
EchoServiceServer returns a server stub for EchoService. It converts an implementation of EchoServiceServerMethods into an object that may be used by rpc.Server.
type EchoServiceServerStubMethods ¶
type EchoServiceServerStubMethods EchoServiceServerMethods
EchoServiceServerStubMethods is the server interface containing EchoService methods, as expected by rpc.Server. There is no difference between this interface and EchoServiceServerMethods since there are no streaming methods.