Version: v1.0.7 Latest Latest

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


View Source
var File_hello_proto protoreflect.FileDescriptor


func RegisterGreetingsServer

func RegisterGreetingsServer(s *grpc.Server, srv GreetingsServer)


type GreetingsClient

type GreetingsClient interface {
	Hello(ctx context.Context, in *HelloMessage, opts ...grpc.CallOption) (*HelloMessage, error)

GreetingsClient is the client API for Greetings service.

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

func NewGreetingsClient

func NewGreetingsClient(cc grpc.ClientConnInterface) GreetingsClient

type GreetingsServer

type GreetingsServer interface {
	Hello(context.Context, *HelloMessage) (*HelloMessage, error)

GreetingsServer is the server API for Greetings service.

type HelloMessage

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

func (*HelloMessage) Descriptor deprecated

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

Deprecated: Use HelloMessage.ProtoReflect.Descriptor instead.

func (*HelloMessage) GetMessage

func (x *HelloMessage) GetMessage() string

func (*HelloMessage) GetName

func (x *HelloMessage) GetName() string

func (*HelloMessage) ProtoMessage

func (*HelloMessage) ProtoMessage()

func (*HelloMessage) ProtoReflect

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

func (*HelloMessage) Reset

func (x *HelloMessage) Reset()

func (*HelloMessage) String

func (x *HelloMessage) String() string

type UnimplementedGreetingsServer

type UnimplementedGreetingsServer struct {

UnimplementedGreetingsServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreetingsServer) Hello

Source Files

Jump to

Keyboard shortcuts

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