Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntRequest ¶
func NewIntRequest(req int32) *pb.EchoIntRequest
func ReadIntResult ¶
func ReadIntResult(res *pb.EchoIntResponse) int32
func ReadStringResult ¶
func ReadStringResult(res *pb.EchoStringResponse) string
Types ¶
type EchoClient ¶
type EchoClient interface { // This should match the service methods exposed in the protobuf service EchoString(request pb.EchoStringRequest) (pb.EchoStringResponse, error) EchoInt(request pb.EchoIntRequest) (pb.EchoIntResponse, error) }
type RemoteEchoClient ¶
type RemoteEchoClient struct {
// contains filtered or unexported fields
}
func NewRemoteEchoClient ¶
func (*RemoteEchoClient) EchoInt ¶
func (ec *RemoteEchoClient) EchoInt(request *pb.EchoIntRequest) (*pb.EchoIntResponse, error)
func (*RemoteEchoClient) EchoString ¶
func (ec *RemoteEchoClient) EchoString(request *pb.EchoStringRequest) (*pb.EchoStringResponse, error)
type Service ¶
func (*Service) EchoInt ¶
func (s *Service) EchoInt(req *pb.EchoIntRequest) (*pb.EchoIntResponse, error)
func (*Service) EchoString ¶
func (s *Service) EchoString(req *pb.EchoStringRequest) (*pb.EchoStringResponse, error)
Click to show internal directories.
Click to hide internal directories.