greetpb

package
v0.0.0-...-a914be7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_greet_greetpb_greet_proto protoreflect.FileDescriptor
View Source
var GreetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "greet.GreetService",
	HandlerType: (*GreetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Greet",
			Handler:    _GreetService_Greet_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GreetManyTimes",
			Handler:       _GreetService_GreetManyTimes_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "LongGreet",
			Handler:       _GreetService_LongGreet_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "GreetEveryOne",
			Handler:       _GreetService_GreetEveryOne_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "greet/greetpb/greet.proto",
}

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

Functions

func RegisterGreetServiceServer

func RegisterGreetServiceServer(s grpc.ServiceRegistrar, srv GreetServiceServer)

Types

type GreetEveryOneRequest

type GreetEveryOneRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

------ BiDi Streaming

func (*GreetEveryOneRequest) Descriptor deprecated

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

Deprecated: Use GreetEveryOneRequest.ProtoReflect.Descriptor instead.

func (*GreetEveryOneRequest) GetGreeting

func (x *GreetEveryOneRequest) GetGreeting() *Greeting

func (*GreetEveryOneRequest) ProtoMessage

func (*GreetEveryOneRequest) ProtoMessage()

func (*GreetEveryOneRequest) ProtoReflect

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

func (*GreetEveryOneRequest) Reset

func (x *GreetEveryOneRequest) Reset()

func (*GreetEveryOneRequest) String

func (x *GreetEveryOneRequest) String() string

type GreetEveryOneResponse

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

func (*GreetEveryOneResponse) Descriptor deprecated

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

Deprecated: Use GreetEveryOneResponse.ProtoReflect.Descriptor instead.

func (*GreetEveryOneResponse) GetResult

func (x *GreetEveryOneResponse) GetResult() string

func (*GreetEveryOneResponse) ProtoMessage

func (*GreetEveryOneResponse) ProtoMessage()

func (*GreetEveryOneResponse) ProtoReflect

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

func (*GreetEveryOneResponse) Reset

func (x *GreetEveryOneResponse) Reset()

func (*GreetEveryOneResponse) String

func (x *GreetEveryOneResponse) String() string

type GreetManyTimesRequest

type GreetManyTimesRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

------ Server Streaming

func (*GreetManyTimesRequest) Descriptor deprecated

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

Deprecated: Use GreetManyTimesRequest.ProtoReflect.Descriptor instead.

func (*GreetManyTimesRequest) GetGreeting

func (x *GreetManyTimesRequest) GetGreeting() *Greeting

func (*GreetManyTimesRequest) ProtoMessage

func (*GreetManyTimesRequest) ProtoMessage()

func (*GreetManyTimesRequest) ProtoReflect

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

func (*GreetManyTimesRequest) Reset

func (x *GreetManyTimesRequest) Reset()

func (*GreetManyTimesRequest) String

func (x *GreetManyTimesRequest) String() string

type GreetManyTimesResponse

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

func (*GreetManyTimesResponse) Descriptor deprecated

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

Deprecated: Use GreetManyTimesResponse.ProtoReflect.Descriptor instead.

func (*GreetManyTimesResponse) GetResult

func (x *GreetManyTimesResponse) GetResult() string

func (*GreetManyTimesResponse) ProtoMessage

func (*GreetManyTimesResponse) ProtoMessage()

func (*GreetManyTimesResponse) ProtoReflect

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

func (*GreetManyTimesResponse) Reset

func (x *GreetManyTimesResponse) Reset()

func (*GreetManyTimesResponse) String

func (x *GreetManyTimesResponse) String() string

type GreetServiceClient

type GreetServiceClient interface {
	// unary
	Greet(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error)
	// server streaming
	GreetManyTimes(ctx context.Context, in *GreetManyTimesRequest, opts ...grpc.CallOption) (GreetService_GreetManyTimesClient, error)
	// client streaming
	LongGreet(ctx context.Context, opts ...grpc.CallOption) (GreetService_LongGreetClient, error)
	// BiDi streaming
	GreetEveryOne(ctx context.Context, opts ...grpc.CallOption) (GreetService_GreetEveryOneClient, error)
}

GreetServiceClient is the client API for GreetService 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 GreetServiceServer

type GreetServiceServer interface {
	// unary
	Greet(context.Context, *GreetingRequest) (*GreetingResponse, error)
	// server streaming
	GreetManyTimes(*GreetManyTimesRequest, GreetService_GreetManyTimesServer) error
	// client streaming
	LongGreet(GreetService_LongGreetServer) error
	// BiDi streaming
	GreetEveryOne(GreetService_GreetEveryOneServer) error
	// contains filtered or unexported methods
}

GreetServiceServer is the server API for GreetService service. All implementations must embed UnimplementedGreetServiceServer for forward compatibility

type GreetService_GreetEveryOneClient

type GreetService_GreetEveryOneClient interface {
	Send(*GreetEveryOneRequest) error
	Recv() (*GreetEveryOneResponse, error)
	grpc.ClientStream
}

type GreetService_GreetEveryOneServer

type GreetService_GreetEveryOneServer interface {
	Send(*GreetEveryOneResponse) error
	Recv() (*GreetEveryOneRequest, error)
	grpc.ServerStream
}

type GreetService_GreetManyTimesClient

type GreetService_GreetManyTimesClient interface {
	Recv() (*GreetManyTimesResponse, error)
	grpc.ClientStream
}

type GreetService_GreetManyTimesServer

type GreetService_GreetManyTimesServer interface {
	Send(*GreetManyTimesResponse) error
	grpc.ServerStream
}

type GreetService_LongGreetClient

type GreetService_LongGreetClient interface {
	Send(*LongGreetRequest) error
	CloseAndRecv() (*LongGreetResponse, error)
	grpc.ClientStream
}

type GreetService_LongGreetServer

type GreetService_LongGreetServer interface {
	SendAndClose(*LongGreetResponse) error
	Recv() (*LongGreetRequest, error)
	grpc.ServerStream
}

type Greeting

type Greeting struct {
	FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Greeting) Descriptor deprecated

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

Deprecated: Use Greeting.ProtoReflect.Descriptor instead.

func (*Greeting) GetFirstName

func (x *Greeting) GetFirstName() string

func (*Greeting) GetLastName

func (x *Greeting) GetLastName() string

func (*Greeting) ProtoMessage

func (*Greeting) ProtoMessage()

func (*Greeting) ProtoReflect

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

func (*Greeting) Reset

func (x *Greeting) Reset()

func (*Greeting) String

func (x *Greeting) String() string

type GreetingRequest

type GreetingRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetingRequest) Descriptor deprecated

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

Deprecated: Use GreetingRequest.ProtoReflect.Descriptor instead.

func (*GreetingRequest) GetGreeting

func (x *GreetingRequest) GetGreeting() *Greeting

func (*GreetingRequest) ProtoMessage

func (*GreetingRequest) ProtoMessage()

func (*GreetingRequest) ProtoReflect

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

func (*GreetingRequest) Reset

func (x *GreetingRequest) Reset()

func (*GreetingRequest) String

func (x *GreetingRequest) String() string

type GreetingResponse

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

func (*GreetingResponse) Descriptor deprecated

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

Deprecated: Use GreetingResponse.ProtoReflect.Descriptor instead.

func (*GreetingResponse) GetResult

func (x *GreetingResponse) GetResult() string

func (*GreetingResponse) ProtoMessage

func (*GreetingResponse) ProtoMessage()

func (*GreetingResponse) ProtoReflect

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

func (*GreetingResponse) Reset

func (x *GreetingResponse) Reset()

func (*GreetingResponse) String

func (x *GreetingResponse) String() string

type LongGreetRequest

type LongGreetRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

------ Client Streaming

func (*LongGreetRequest) Descriptor deprecated

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

Deprecated: Use LongGreetRequest.ProtoReflect.Descriptor instead.

func (*LongGreetRequest) GetGreeting

func (x *LongGreetRequest) GetGreeting() *Greeting

func (*LongGreetRequest) ProtoMessage

func (*LongGreetRequest) ProtoMessage()

func (*LongGreetRequest) ProtoReflect

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

func (*LongGreetRequest) Reset

func (x *LongGreetRequest) Reset()

func (*LongGreetRequest) String

func (x *LongGreetRequest) String() string

type LongGreetResponse

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

func (*LongGreetResponse) Descriptor deprecated

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

Deprecated: Use LongGreetResponse.ProtoReflect.Descriptor instead.

func (*LongGreetResponse) GetResult

func (x *LongGreetResponse) GetResult() string

func (*LongGreetResponse) ProtoMessage

func (*LongGreetResponse) ProtoMessage()

func (*LongGreetResponse) ProtoReflect

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

func (*LongGreetResponse) Reset

func (x *LongGreetResponse) Reset()

func (*LongGreetResponse) String

func (x *LongGreetResponse) String() string

type UnimplementedGreetServiceServer

type UnimplementedGreetServiceServer struct {
}

UnimplementedGreetServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGreetServiceServer) Greet

func (UnimplementedGreetServiceServer) GreetEveryOne

func (UnimplementedGreetServiceServer) GreetManyTimes

func (UnimplementedGreetServiceServer) LongGreet

type UnsafeGreetServiceServer

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

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

Jump to

Keyboard shortcuts

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