Documentation ¶
Index ¶
- func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
- func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type Echo
- func (*Echo) Descriptor() ([]byte, []int)
- func (m *Echo) GetPayload() []byte
- func (*Echo) ProtoMessage()
- func (m *Echo) Reset()
- func (m *Echo) String() string
- func (m *Echo) XXX_DiscardUnknown()
- func (m *Echo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Echo) XXX_Merge(src proto.Message)
- func (m *Echo) XXX_Size() int
- func (m *Echo) XXX_Unmarshal(b []byte) error
- type EchoServiceClient
- type EchoServiceServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EmptyServiceClient
- type EmptyServiceServer
- type EmptyService_EmptyStreamClient
- type EmptyService_EmptyStreamServer
- type TestServiceClient
- type TestServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
func RegisterEmptyServiceServer ¶
func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type Echo ¶
type EchoServiceClient ¶
type EchoServiceClient interface {
EchoCall(ctx context.Context, in *Echo, opts ...grpc.CallOption) (*Echo, error)
}
EchoServiceClient is the client API for EchoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient
type EchoServiceServer ¶
EchoServiceServer is the server API for EchoService service.
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) XXX_Marshal ¶
type EmptyServiceClient ¶
type EmptyServiceClient interface { EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) EmptyStream(ctx context.Context, opts ...grpc.CallOption) (EmptyService_EmptyStreamClient, error) }
EmptyServiceClient is the client API for EmptyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmptyServiceClient ¶
func NewEmptyServiceClient(cc *grpc.ClientConn) EmptyServiceClient
type EmptyServiceServer ¶
type EmptyServiceServer interface { EmptyCall(context.Context, *Empty) (*Empty, error) EmptyStream(EmptyService_EmptyStreamServer) error }
EmptyServiceServer is the server API for EmptyService service.
type EmptyService_EmptyStreamClient ¶
type EmptyService_EmptyStreamServer ¶
type TestServiceClient ¶
type TestServiceClient interface {
EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
TestServiceClient is the client API for TestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTestServiceClient ¶
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient