grpc_pb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "A",
		1: "B",
		2: "C",
		3: "D",
	}
	Status_value = map[string]int32{
		"A": 0,
		"B": 1,
		"C": 2,
		"D": 3,
	}
)

Enum value maps for Status.

View Source
var File_holle_proto protoreflect.FileDescriptor
View Source
var Greeterxiaochao_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpc.Greeterxiaochao",
	HandlerType: (*GreeterxiaochaoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Helloxiao",
			Handler:    _Greeterxiaochao_Helloxiao_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "HelloxiaoServerStream",
			Handler:       _Greeterxiaochao_HelloxiaoServerStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "HelloxiaoClientStream",
			Handler:       _Greeterxiaochao_HelloxiaoClientStream_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "HelloxiaoStream",
			Handler:       _Greeterxiaochao_HelloxiaoStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "holle.proto",
}

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

Functions

func RegisterGreeterxiaochaoServer

func RegisterGreeterxiaochaoServer(s grpc.ServiceRegistrar, srv GreeterxiaochaoServer)

Types

type GreeterxiaochaoClient

type GreeterxiaochaoClient interface {
	Helloxiao(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
	HelloxiaoServerStream(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoServerStreamClient, error)
	HelloxiaoClientStream(ctx context.Context, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoClientStreamClient, error)
	HelloxiaoStream(ctx context.Context, opts ...grpc.CallOption) (Greeterxiaochao_HelloxiaoStreamClient, error)
}

GreeterxiaochaoClient is the client API for Greeterxiaochao 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.

type GreeterxiaochaoServer

type GreeterxiaochaoServer interface {
	Helloxiao(context.Context, *HelloRequest) (*HelloResponse, error)
	HelloxiaoServerStream(*HelloRequest, Greeterxiaochao_HelloxiaoServerStreamServer) error
	HelloxiaoClientStream(Greeterxiaochao_HelloxiaoClientStreamServer) error
	HelloxiaoStream(Greeterxiaochao_HelloxiaoStreamServer) error
	// contains filtered or unexported methods
}

GreeterxiaochaoServer is the server API for Greeterxiaochao service. All implementations must embed UnimplementedGreeterxiaochaoServer for forward compatibility

type Greeterxiaochao_HelloxiaoClientStreamClient

type Greeterxiaochao_HelloxiaoClientStreamClient interface {
	Send(*HelloRequest) error
	CloseAndRecv() (*HelloResponse, error)
	grpc.ClientStream
}

type Greeterxiaochao_HelloxiaoClientStreamServer

type Greeterxiaochao_HelloxiaoClientStreamServer interface {
	SendAndClose(*HelloResponse) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type Greeterxiaochao_HelloxiaoServerStreamClient

type Greeterxiaochao_HelloxiaoServerStreamClient interface {
	Recv() (*HelloResponse, error)
	grpc.ClientStream
}

type Greeterxiaochao_HelloxiaoServerStreamServer

type Greeterxiaochao_HelloxiaoServerStreamServer interface {
	Send(*HelloResponse) error
	grpc.ServerStream
}

type Greeterxiaochao_HelloxiaoStreamClient

type Greeterxiaochao_HelloxiaoStreamClient interface {
	Send(*HelloRequest) error
	Recv() (*HelloResponse, error)
	grpc.ClientStream
}

type Greeterxiaochao_HelloxiaoStreamServer

type Greeterxiaochao_HelloxiaoStreamServer interface {
	Send(*HelloResponse) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type HelloRequest

type HelloRequest struct {
	Name  []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
	Count int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetCount

func (x *HelloRequest) GetCount() int32

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 HelloResponse

type HelloResponse struct {
	Greeting []string `protobuf:"bytes,1,rep,name=greeting,proto3" json:"greeting,omitempty"`
	Msg      string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetGreeting

func (x *HelloResponse) GetGreeting() []string

func (*HelloResponse) GetMsg

func (x *HelloResponse) GetMsg() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type Status

type Status int32
const (
	Status_A Status = 0
	Status_B Status = 1
	Status_C Status = 2
	Status_D Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UnimplementedGreeterxiaochaoServer

type UnimplementedGreeterxiaochaoServer struct {
}

UnimplementedGreeterxiaochaoServer must be embedded to have forward compatible implementations.

func (UnimplementedGreeterxiaochaoServer) Helloxiao

func (UnimplementedGreeterxiaochaoServer) HelloxiaoClientStream

func (UnimplementedGreeterxiaochaoServer) HelloxiaoServerStream

func (UnimplementedGreeterxiaochaoServer) HelloxiaoStream

type UnsafeGreeterxiaochaoServer

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

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

Jump to

Keyboard shortcuts

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