Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_network_proto_test_test_proto protoreflect.FileDescriptor
var Test_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Test", HandlerType: (*TestServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "A", Handler: _Test_A_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network/proto/test/test.proto", }
Test_ServiceDesc is the grpc.ServiceDesc for Test service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestServer ¶
func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)
Types ¶
type AReq ¶
type AReq struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*AReq) Descriptor
deprecated
func (*AReq) ProtoMessage ¶
func (*AReq) ProtoMessage()
func (*AReq) ProtoReflect ¶
func (x *AReq) ProtoReflect() protoreflect.Message
type AResp ¶
type AResp struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*AResp) Descriptor
deprecated
func (*AResp) ProtoMessage ¶
func (*AResp) ProtoMessage()
func (*AResp) ProtoReflect ¶
func (x *AResp) ProtoReflect() protoreflect.Message
type TestClient ¶
type TestClient interface {
A(ctx context.Context, in *AReq, opts ...grpc.CallOption) (*AResp, error)
}
TestClient is the client API for Test service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTestClient ¶
func NewTestClient(cc grpc.ClientConnInterface) TestClient
type TestServer ¶
type TestServer interface {
A(context.Context, *AReq) (*AResp, error)
// contains filtered or unexported methods
}
TestServer is the server API for Test service. All implementations must embed UnimplementedTestServer for forward compatibility
type UnimplementedTestServer ¶
type UnimplementedTestServer struct {
}
UnimplementedTestServer must be embedded to have forward compatible implementations.
type UnsafeTestServer ¶
type UnsafeTestServer interface {
// contains filtered or unexported methods
}
UnsafeTestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServer will result in compilation errors.