Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
TextRequest TextReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterApiServer ¶
Types ¶
type ApiClient ¶
type ApiClient interface {
Text(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*TextReply, error)
}
func NewApiClient ¶
func NewApiClient(cc *grpc.ClientConn) ApiClient
type ApiServer ¶
type ApiServer interface {
Text(context.Context, *TextRequest) (*TextReply, error)
}
type TextReply ¶
type TextReply struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}
The response message containing the greetings
func (*TextReply) Descriptor ¶
func (*TextReply) ProtoMessage ¶
func (*TextReply) ProtoMessage()
type TextRequest ¶
type TextRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` }
The request message containing the user's name.
func (*TextRequest) Descriptor ¶
func (*TextRequest) Descriptor() ([]byte, []int)
func (*TextRequest) GetName ¶
func (m *TextRequest) GetName() string
func (*TextRequest) GetText ¶
func (m *TextRequest) GetText() string
func (*TextRequest) ProtoMessage ¶
func (*TextRequest) ProtoMessage()
func (*TextRequest) Reset ¶
func (m *TextRequest) Reset()
func (*TextRequest) String ¶
func (m *TextRequest) String() string
Click to show internal directories.
Click to hide internal directories.