Documentation ¶
Index ¶
- func RegisterSampleDomainServer(s *grpc.Server, srv SampleDomainServer)
- type SampleDomainClient
- type SampleDomainServer
- type TextReply
- func (*TextReply) Descriptor() ([]byte, []int)
- func (m *TextReply) GetText() string
- func (*TextReply) ProtoMessage()
- func (m *TextReply) Reset()
- func (m *TextReply) String() string
- func (m *TextReply) XXX_DiscardUnknown()
- func (m *TextReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextReply) XXX_Merge(src proto.Message)
- func (m *TextReply) XXX_Size() int
- func (m *TextReply) XXX_Unmarshal(b []byte) error
- type TextRequest
- func (*TextRequest) Descriptor() ([]byte, []int)
- func (m *TextRequest) GetText() string
- func (*TextRequest) ProtoMessage()
- func (m *TextRequest) Reset()
- func (m *TextRequest) String() string
- func (m *TextRequest) XXX_DiscardUnknown()
- func (m *TextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TextRequest) XXX_Merge(src proto.Message)
- func (m *TextRequest) XXX_Size() int
- func (m *TextRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedSampleDomainServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSampleDomainServer ¶
func RegisterSampleDomainServer(s *grpc.Server, srv SampleDomainServer)
Types ¶
type SampleDomainClient ¶
type SampleDomainClient interface {
GetText(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*TextReply, error)
}
SampleDomainClient is the client API for SampleDomain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSampleDomainClient ¶
func NewSampleDomainClient(cc *grpc.ClientConn) SampleDomainClient
type SampleDomainServer ¶
type SampleDomainServer interface {
GetText(context.Context, *TextRequest) (*TextReply, error)
}
SampleDomainServer is the server API for SampleDomain service.
type TextReply ¶
type TextReply struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TextReply) Descriptor ¶
func (*TextReply) ProtoMessage ¶
func (*TextReply) ProtoMessage()
func (*TextReply) XXX_DiscardUnknown ¶
func (m *TextReply) XXX_DiscardUnknown()
func (*TextReply) XXX_Marshal ¶
func (*TextReply) XXX_Unmarshal ¶
type TextRequest ¶
type TextRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TextRequest) Descriptor ¶
func (*TextRequest) Descriptor() ([]byte, []int)
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
func (*TextRequest) XXX_DiscardUnknown ¶
func (m *TextRequest) XXX_DiscardUnknown()
func (*TextRequest) XXX_Marshal ¶
func (m *TextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TextRequest) XXX_Merge ¶
func (m *TextRequest) XXX_Merge(src proto.Message)
func (*TextRequest) XXX_Size ¶
func (m *TextRequest) XXX_Size() int
func (*TextRequest) XXX_Unmarshal ¶
func (m *TextRequest) XXX_Unmarshal(b []byte) error
type UnimplementedSampleDomainServer ¶
type UnimplementedSampleDomainServer struct { }
UnimplementedSampleDomainServer can be embedded to have forward compatible implementations.
func (*UnimplementedSampleDomainServer) GetText ¶
func (*UnimplementedSampleDomainServer) GetText(ctx context.Context, req *TextRequest) (*TextReply, error)
Click to show internal directories.
Click to hide internal directories.