pb

package
v0.0.0-...-30ab8a0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var GoodbyeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "GoodbyeService",
	HandlerType: (*GoodbyeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Goodbye",
			Handler:    _GoodbyeService_Goodbye_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

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

View Source
var HelloService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "HelloService",
	HandlerType: (*HelloServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _HelloService_Hello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.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 RegisterGoodbyeServiceServer

func RegisterGoodbyeServiceServer(s grpc.ServiceRegistrar, srv GoodbyeServiceServer)

func RegisterHelloServiceServer

func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)

Types

type GoodbyeRequest

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

func (*GoodbyeRequest) Descriptor deprecated

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

Deprecated: Use GoodbyeRequest.ProtoReflect.Descriptor instead.

func (*GoodbyeRequest) ProtoMessage

func (*GoodbyeRequest) ProtoMessage()

func (*GoodbyeRequest) ProtoReflect

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

func (*GoodbyeRequest) Reset

func (x *GoodbyeRequest) Reset()

func (*GoodbyeRequest) String

func (x *GoodbyeRequest) String() string

type GoodbyeResponse

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

func (*GoodbyeResponse) Descriptor deprecated

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

Deprecated: Use GoodbyeResponse.ProtoReflect.Descriptor instead.

func (*GoodbyeResponse) GetMessage

func (x *GoodbyeResponse) GetMessage() string

func (*GoodbyeResponse) ProtoMessage

func (*GoodbyeResponse) ProtoMessage()

func (*GoodbyeResponse) ProtoReflect

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

func (*GoodbyeResponse) Reset

func (x *GoodbyeResponse) Reset()

func (*GoodbyeResponse) String

func (x *GoodbyeResponse) String() string

type GoodbyeServiceClient

type GoodbyeServiceClient interface {
	Goodbye(ctx context.Context, in *GoodbyeRequest, opts ...grpc.CallOption) (*GoodbyeResponse, error)
}

GoodbyeServiceClient is the client API for GoodbyeService 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 GoodbyeServiceServer

type GoodbyeServiceServer interface {
	Goodbye(context.Context, *GoodbyeRequest) (*GoodbyeResponse, error)
	// contains filtered or unexported methods
}

GoodbyeServiceServer is the server API for GoodbyeService service. All implementations must embed UnimplementedGoodbyeServiceServer for forward compatibility

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

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 {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetMessage

func (x *HelloResponse) GetMessage() 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 HelloServiceClient

type HelloServiceClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, 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.

type HelloServiceServer

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

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

type UnimplementedGoodbyeServiceServer

type UnimplementedGoodbyeServiceServer struct {
}

UnimplementedGoodbyeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGoodbyeServiceServer) Goodbye

type UnimplementedHelloServiceServer

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHelloServiceServer) Hello

type UnsafeGoodbyeServiceServer

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

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

type UnsafeHelloServiceServer

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