proto

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_Hello_proto protoreflect.FileDescriptor
View Source
var HelloService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Hello.HelloService",
	HandlerType: (*HelloServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _HelloService_Hello_Handler,
		},
		{
			MethodName: "Hello2",
			Handler:    _HelloService_Hello2_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "Hello.proto",
}

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

Functions

func RegisterHelloServiceServer added in v0.0.7

func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)

Types

type CheckResultReq

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

func (*CheckResultReq) Descriptor deprecated

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

Deprecated: Use CheckResultReq.ProtoReflect.Descriptor instead.

func (*CheckResultReq) GetHelloString

func (x *CheckResultReq) GetHelloString() string

func (*CheckResultReq) ProtoMessage

func (*CheckResultReq) ProtoMessage()

func (*CheckResultReq) ProtoReflect

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

func (*CheckResultReq) Reset

func (x *CheckResultReq) Reset()

func (*CheckResultReq) String

func (x *CheckResultReq) String() string

type CheckResultResp

type CheckResultResp struct {
	ResponseCode string `protobuf:"bytes,1,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` //操作结果,1成功,0失败
	// contains filtered or unexported fields
}

func (*CheckResultResp) Descriptor deprecated

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

Deprecated: Use CheckResultResp.ProtoReflect.Descriptor instead.

func (*CheckResultResp) GetResponseCode

func (x *CheckResultResp) GetResponseCode() string

func (*CheckResultResp) ProtoMessage

func (*CheckResultResp) ProtoMessage()

func (*CheckResultResp) ProtoReflect

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

func (*CheckResultResp) Reset

func (x *CheckResultResp) Reset()

func (*CheckResultResp) String

func (x *CheckResultResp) String() string

type HelloServiceClient added in v0.0.7

type HelloServiceClient interface {
	Hello(ctx context.Context, in *CheckResultReq, opts ...grpc.CallOption) (*CheckResultResp, error)
	Hello2(ctx context.Context, in *CheckResultReq, opts ...grpc.CallOption) (*CheckResultResp, error)
}

HelloServiceClient is the client API for HelloService 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 NewHelloServiceClient added in v0.0.7

func NewHelloServiceClient(cc grpc.ClientConnInterface) HelloServiceClient

type HelloServiceServer added in v0.0.7

type HelloServiceServer interface {
	Hello(context.Context, *CheckResultReq) (*CheckResultResp, error)
	Hello2(context.Context, *CheckResultReq) (*CheckResultResp, error)
	// contains filtered or unexported methods
}

HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility

type UnimplementedHelloServiceServer added in v0.0.7

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHelloServiceServer) Hello added in v0.0.7

func (UnimplementedHelloServiceServer) Hello2 added in v0.0.7

type UnsafeHelloServiceServer added in v0.0.7

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

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

Jump to

Keyboard shortcuts

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