simple_grpc_pb

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_simple_grpc_proto protoreflect.FileDescriptor
View Source
var Simple_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "simple_grpc_pb.Simple",
	HandlerType: (*SimpleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _Simple_Echo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "simple_grpc.proto",
}

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

Functions

func RegisterSimpleServer

func RegisterSimpleServer(s grpc.ServiceRegistrar, srv SimpleServer)

Types

type EchoRequest

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

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetMessage

func (x *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

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

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetMessage

func (x *EchoResponse) GetMessage() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type SimpleClient

type SimpleClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

SimpleClient is the client API for Simple service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSimpleClient

func NewSimpleClient(cc grpc.ClientConnInterface) SimpleClient

type SimpleServer

type SimpleServer interface {
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	// contains filtered or unexported methods
}

SimpleServer is the server API for Simple service. All implementations must embed UnimplementedSimpleServer for forward compatibility

type UnimplementedSimpleServer

type UnimplementedSimpleServer struct {
}

UnimplementedSimpleServer must be embedded to have forward compatible implementations.

func (UnimplementedSimpleServer) Echo

type UnsafeSimpleServer

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

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

Jump to

Keyboard shortcuts

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