api

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoService_ServiceDesc = grpc_go.ServiceDesc{
	ServiceName: "demoservice.DemoService",
	HandlerType: (*DemoServiceServer)(nil),
	Methods: []grpc_go.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _DemoService_SayHello_Handler,
		},
	},
	Streams:  []grpc_go.StreamDesc{},
	Metadata: "DemoService.proto",
}

DemoService_ServiceDesc is the grpc_go.ServiceDesc for DemoService service. It's only intended for direct use with grpc_go.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_DemoService_proto protoreflect.FileDescriptor

Functions

func RegisterDemoServiceServer

func RegisterDemoServiceServer(s grpc_go.ServiceRegistrar, srv DemoServiceServer)

Types

type DemoServiceClient

type DemoServiceClient interface {
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc_go.CallOption) (*HelloReply, common.ErrorWithAttachment)
}

DemoServiceClient is the client API for DemoService 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 NewDemoServiceClient

func NewDemoServiceClient(cc *triple.TripleConn) DemoServiceClient

type DemoServiceClientImpl

type DemoServiceClientImpl struct {
	SayHello func(ctx context.Context, in *HelloRequest) (*HelloReply, error)
}

func (*DemoServiceClientImpl) GetDubboStub

func (*DemoServiceClientImpl) XXX_InterfaceName

func (c *DemoServiceClientImpl) XXX_InterfaceName() string

type DemoServiceServer

type DemoServiceServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
	// contains filtered or unexported methods
}

DemoServiceServer is the server API for DemoService service. All implementations must embed UnimplementedDemoServiceServer for forward compatibility

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*HelloReply) Descriptor deprecated

func (*HelloReply) Descriptor() ([]byte, []int)

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetMessage

func (x *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

func (x *HelloReply) ProtoReflect() protoreflect.Message

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

type HelloRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the user's name.

func (*HelloRequest) Descriptor deprecated

func (*HelloRequest) Descriptor() ([]byte, []int)

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

func (x *HelloRequest) ProtoReflect() protoreflect.Message

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type UnimplementedDemoServiceServer

type UnimplementedDemoServiceServer struct {
	// contains filtered or unexported fields
}

UnimplementedDemoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDemoServiceServer) SayHello

func (*UnimplementedDemoServiceServer) XXX_GetProxyImpl

func (s *UnimplementedDemoServiceServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedDemoServiceServer) XXX_InterfaceName

func (s *UnimplementedDemoServiceServer) XXX_InterfaceName() string

func (*UnimplementedDemoServiceServer) XXX_ServiceDesc

func (s *UnimplementedDemoServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc

func (*UnimplementedDemoServiceServer) XXX_SetProxyImpl

func (s *UnimplementedDemoServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnsafeDemoServiceServer

type UnsafeDemoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDemoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DemoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL