Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_helloworld_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func NewHelloWorldEndpoints ¶
func RegisterHelloWorldHandler ¶
func RegisterHelloWorldHandler(s server.Server, hdlr HelloWorldHandler, opts ...server.HandlerOption) error
Types ¶
type HelloWorldHandler ¶
type HelloWorldHandler interface {
SayHello(context.Context, *SayRequest, *SayResponse) error
}
type HelloWorldService ¶
type HelloWorldService interface {
SayHello(ctx context.Context, in *SayRequest, opts ...client.CallOption) (*SayResponse, error)
}
func NewHelloWorldService ¶
func NewHelloWorldService(name string, c client.Client) HelloWorldService
type SayRequest ¶
type SayRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SayRequest) Descriptor
deprecated
func (*SayRequest) Descriptor() ([]byte, []int)
Deprecated: Use SayRequest.ProtoReflect.Descriptor instead.
func (*SayRequest) GetMessage ¶
func (x *SayRequest) GetMessage() string
func (*SayRequest) ProtoMessage ¶
func (*SayRequest) ProtoMessage()
func (*SayRequest) ProtoReflect ¶
func (x *SayRequest) ProtoReflect() protoreflect.Message
func (*SayRequest) Reset ¶
func (x *SayRequest) Reset()
func (*SayRequest) String ¶
func (x *SayRequest) String() string
type SayResponse ¶
type SayResponse struct { Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*SayResponse) Descriptor
deprecated
func (*SayResponse) Descriptor() ([]byte, []int)
Deprecated: Use SayResponse.ProtoReflect.Descriptor instead.
func (*SayResponse) GetAnswer ¶
func (x *SayResponse) GetAnswer() string
func (*SayResponse) ProtoMessage ¶
func (*SayResponse) ProtoMessage()
func (*SayResponse) ProtoReflect ¶
func (x *SayResponse) ProtoReflect() protoreflect.Message
func (*SayResponse) Reset ¶
func (x *SayResponse) Reset()
func (*SayResponse) String ¶
func (x *SayResponse) String() string
Click to show internal directories.
Click to hide internal directories.