Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hello_proto protoreflect.FileDescriptor
Functions ¶
func NewGreetClient ¶
func NewGreetHandler ¶
func NewGreetHandler() *greetHandler
Types ¶
type Greet ¶
type Greet interface {
SayHello(context.Context, *SayHelloReq) (*SayHelloRes, error)
}
type NopGreetImpl ¶
type NopGreetImpl struct{}
func (*NopGreetImpl) SayHello ¶
func (_ *NopGreetImpl) SayHello(ctx context.Context, req *SayHelloReq) (*SayHelloRes, error)
type SayHelloReq ¶
type SayHelloReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SayHelloReq) Descriptor
deprecated
func (*SayHelloReq) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloReq.ProtoReflect.Descriptor instead.
func (*SayHelloReq) GetName ¶
func (x *SayHelloReq) GetName() string
func (*SayHelloReq) ProtoMessage ¶
func (*SayHelloReq) ProtoMessage()
func (*SayHelloReq) ProtoReflect ¶
func (x *SayHelloReq) ProtoReflect() protoreflect.Message
func (*SayHelloReq) Reset ¶
func (x *SayHelloReq) Reset()
func (*SayHelloReq) String ¶
func (x *SayHelloReq) String() string
type SayHelloRes ¶
type SayHelloRes struct { Relay string `protobuf:"bytes,1,opt,name=relay,proto3" json:"relay,omitempty"` // contains filtered or unexported fields }
func (*SayHelloRes) Descriptor
deprecated
func (*SayHelloRes) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloRes.ProtoReflect.Descriptor instead.
func (*SayHelloRes) GetRelay ¶
func (x *SayHelloRes) GetRelay() string
func (*SayHelloRes) ProtoMessage ¶
func (*SayHelloRes) ProtoMessage()
func (*SayHelloRes) ProtoReflect ¶
func (x *SayHelloRes) ProtoReflect() protoreflect.Message
func (*SayHelloRes) Reset ¶
func (x *SayHelloRes) Reset()
func (*SayHelloRes) String ¶
func (x *SayHelloRes) String() string
Click to show internal directories.
Click to hide internal directories.