testservices

package
v0.0.0-...-8ff35f7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_grpc_discovery_internal_testservices_helloworld_proto protoreflect.FileDescriptor

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterCalcServer

func RegisterCalcServer(s prpc.Registrar, srv CalcServer)

func RegisterGreeterServer

func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)

Types

type CalcClient

type CalcClient interface {
	Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error)
}

CalcClient is the client API for Calc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCalcClient

func NewCalcClient(cc grpc.ClientConnInterface) CalcClient

func NewCalcPRPCClient

func NewCalcPRPCClient(client *prpc.Client) CalcClient

type CalcServer

type CalcServer interface {
	Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error)
}

CalcServer is the server API for Calc service.

type GreeterClient

type GreeterClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

GreeterClient is the client API for Greeter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

func NewGreeterPRPCClient

func NewGreeterPRPCClient(client *prpc.Client) GreeterClient

type GreeterServer

type GreeterServer interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

GreeterServer is the server API for Greeter service.

type HelloReply

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

The response message containing the greetings

func (*HelloReply) Descriptor deprecated

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

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetMessage

func (x *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

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

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

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

The request message containing the user's name.

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

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 MultiplyRequest

type MultiplyRequest struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplyRequest) Descriptor deprecated

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

Deprecated: Use MultiplyRequest.ProtoReflect.Descriptor instead.

func (*MultiplyRequest) GetX

func (x *MultiplyRequest) GetX() int32

func (*MultiplyRequest) GetY

func (x *MultiplyRequest) GetY() int32

func (*MultiplyRequest) ProtoMessage

func (*MultiplyRequest) ProtoMessage()

func (*MultiplyRequest) ProtoReflect

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

func (*MultiplyRequest) Reset

func (x *MultiplyRequest) Reset()

func (*MultiplyRequest) String

func (x *MultiplyRequest) String() string

type MultiplyResponse

type MultiplyResponse struct {
	Z int32 `protobuf:"varint,1,opt,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplyResponse) Descriptor deprecated

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

Deprecated: Use MultiplyResponse.ProtoReflect.Descriptor instead.

func (*MultiplyResponse) GetZ

func (x *MultiplyResponse) GetZ() int32

func (*MultiplyResponse) ProtoMessage

func (*MultiplyResponse) ProtoMessage()

func (*MultiplyResponse) ProtoReflect

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

func (*MultiplyResponse) Reset

func (x *MultiplyResponse) Reset()

func (*MultiplyResponse) String

func (x *MultiplyResponse) String() string

type UnimplementedCalcServer

type UnimplementedCalcServer struct {
}

UnimplementedCalcServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalcServer) Multiply

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) SayHello

Jump to

Keyboard shortcuts

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