hello

package
v0.0.0-...-4e7e9c9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hello_proto protoreflect.FileDescriptor
View Source
var ServiceDesc = _Hello_serviceDesc

Functions

func RegisterHelloServer

func RegisterHelloServer(s *grpc.Server, srv HelloServer)

Types

type HelloClient

type HelloClient interface {
	Say(ctx context.Context, in *SayReq, opts ...grpc.CallOption) (*SayRsp, error)
}

HelloClient is the client API for Hello service.

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

func NewHelloClient

func NewHelloClient(cc grpc.ClientConnInterface) HelloClient

type HelloServer

type HelloServer interface {
	Say(context.Context, *SayReq) (*SayRsp, error)
}

HelloServer is the server API for Hello service.

type SayReq

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

func (*SayReq) Descriptor deprecated

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

Deprecated: Use SayReq.ProtoReflect.Descriptor instead.

func (*SayReq) GetName

func (x *SayReq) GetName() string

func (*SayReq) ProtoMessage

func (*SayReq) ProtoMessage()

func (*SayReq) ProtoReflect

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

func (*SayReq) Reset

func (x *SayReq) Reset()

func (*SayReq) String

func (x *SayReq) String() string

type SayRsp

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

func (*SayRsp) Descriptor deprecated

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

Deprecated: Use SayRsp.ProtoReflect.Descriptor instead.

func (*SayRsp) GetReply

func (x *SayRsp) GetReply() string

func (*SayRsp) ProtoMessage

func (*SayRsp) ProtoMessage()

func (*SayRsp) ProtoReflect

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

func (*SayRsp) Reset

func (x *SayRsp) Reset()

func (*SayRsp) String

func (x *SayRsp) String() string

type UnimplementedHelloServer

type UnimplementedHelloServer struct {
}

UnimplementedHelloServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloServer) Say

Jump to

Keyboard shortcuts

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