Documentation ¶
Index ¶
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type Empty
- type GetListRequest
- type GetRequest
- type GetResponse
- type TestServiceClient
- type TestServiceServer
- type TestService_GetListClient
- type TestService_GetListServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_sdktest_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gosdk.testproto.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _TestService_Get_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetList", Handler: _TestService_GetList_Handler, ServerStreams: true, }, }, Metadata: "sdktest.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetListRequest ¶
type GetListRequest struct {
// contains filtered or unexported fields
}
func (*GetListRequest) Descriptor
deprecated
func (*GetListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetListRequest.ProtoReflect.Descriptor instead.
func (*GetListRequest) ProtoMessage ¶
func (*GetListRequest) ProtoMessage()
func (*GetListRequest) ProtoReflect ¶
func (x *GetListRequest) ProtoReflect() protoreflect.Message
func (*GetListRequest) Reset ¶
func (x *GetListRequest) Reset()
func (*GetListRequest) String ¶
func (x *GetListRequest) String() string
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type TestServiceClient ¶
type TestServiceClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (TestService_GetListClient, error) }
TestServiceClient is the client API for TestService 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 NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) GetList(*GetListRequest, TestService_GetListServer) error // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type TestService_GetListClient ¶
type TestService_GetListClient interface { Recv() (*GetResponse, error) grpc.ClientStream }
type TestService_GetListServer ¶
type TestService_GetListServer interface { Send(*GetResponse) error grpc.ServerStream }
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) Get ¶
func (UnimplementedTestServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedTestServiceServer) GetList ¶
func (UnimplementedTestServiceServer) GetList(*GetListRequest, TestService_GetListServer) error
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.