Documentation ¶
Index ¶
- Variables
- func NewTestEndpoints() []*api.Endpoint
- func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.HandlerOption) error
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type Request
- type Response
- type TestClient
- type TestHandler
- type TestServer
- type TestService
- type UnimplementedTestServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_service_grpc_proto_test_proto protoreflect.FileDescriptor
Functions ¶
func NewTestEndpoints ¶
func RegisterTestHandler ¶
func RegisterTestHandler(s server.Server, hdlr TestHandler, opts ...server.HandlerOption) error
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v2.9.3
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v2.9.3
func (x *Response) ProtoReflect() protoreflect.Message
type TestClient ¶
type TestClient interface {
Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
TestClient is the client API for Test service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTestClient ¶
func NewTestClient(cc grpc.ClientConnInterface) TestClient
type TestServer ¶
TestServer is the server API for Test service.
type TestService ¶
type TestService interface {
Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewTestService ¶
func NewTestService(name string, c client.Client) TestService
type UnimplementedTestServer ¶
type UnimplementedTestServer struct { }
UnimplementedTestServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.