test

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_helloworld2_proto protoreflect.FileDescriptor
View Source
var File_grpc_helloworld_proto protoreflect.FileDescriptor

Functions

func RegisterGreeter2Server added in v0.1.3

func RegisterGreeter2Server(s *grpc.Server, srv Greeter2Server)

func RegisterGreeterServer added in v0.1.3

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type Greeter2Client added in v0.1.3

type Greeter2Client interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest2, opts ...grpc.CallOption) (*HelloReply2, error)
}

Greeter2Client is the client API for Greeter2 service.

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

func NewGreeter2Client added in v0.1.3

func NewGreeter2Client(cc grpc.ClientConnInterface) Greeter2Client

type Greeter2Server added in v0.1.3

type Greeter2Server interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest2) (*HelloReply2, error)
}

Greeter2Server is the server API for Greeter2 service.

type GreeterClient added in v0.1.3

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 added in v0.1.3

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

type GreeterServer added in v0.1.3

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 HelloReply2

type HelloReply2 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 (*HelloReply2) Descriptor deprecated

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

Deprecated: Use HelloReply2.ProtoReflect.Descriptor instead.

func (*HelloReply2) GetMessage

func (x *HelloReply2) GetMessage() string

func (*HelloReply2) ProtoMessage

func (*HelloReply2) ProtoMessage()

func (*HelloReply2) ProtoReflect

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

func (*HelloReply2) Reset

func (x *HelloReply2) Reset()

func (*HelloReply2) String

func (x *HelloReply2) 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 HelloRequest2

type HelloRequest2 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 (*HelloRequest2) Descriptor deprecated

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

Deprecated: Use HelloRequest2.ProtoReflect.Descriptor instead.

func (*HelloRequest2) GetName

func (x *HelloRequest2) GetName() string

func (*HelloRequest2) ProtoMessage

func (*HelloRequest2) ProtoMessage()

func (*HelloRequest2) ProtoReflect

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

func (*HelloRequest2) Reset

func (x *HelloRequest2) Reset()

func (*HelloRequest2) String

func (x *HelloRequest2) String() string

type HelloRequest3

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

func (*HelloRequest3) Descriptor deprecated

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

Deprecated: Use HelloRequest3.ProtoReflect.Descriptor instead.

func (*HelloRequest3) GetName

func (x *HelloRequest3) GetName() string

func (*HelloRequest3) ProtoMessage

func (*HelloRequest3) ProtoMessage()

func (*HelloRequest3) ProtoReflect

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

func (*HelloRequest3) Reset

func (x *HelloRequest3) Reset()

func (*HelloRequest3) String

func (x *HelloRequest3) String() string

type UnimplementedGreeter2Server added in v0.1.3

type UnimplementedGreeter2Server struct {
}

UnimplementedGreeter2Server can be embedded to have forward compatible implementations.

func (*UnimplementedGreeter2Server) SayHello added in v0.1.3

type UnimplementedGreeterServer added in v0.1.3

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) SayHello added in v0.1.3

Jump to

Keyboard shortcuts

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