Documentation ¶
Index ¶
- func RegisterCommunicateServer(s *grpc.Server, srv CommunicateServer)
- type CommunicateClient
- type CommunicateServer
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetDetail() string
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) String() string
- func (m *Content) XXX_DiscardUnknown()
- func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Content) XXX_Merge(src proto.Message)
- func (m *Content) XXX_Size() int
- func (m *Content) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCommunicateServer ¶
func RegisterCommunicateServer(s *grpc.Server, srv CommunicateServer)
Types ¶
type CommunicateClient ¶
type CommunicateClient interface {
Speak(ctx context.Context, in *Content, opts ...grpc.CallOption) (*Content, error)
}
CommunicateClient is the client API for Communicate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommunicateClient ¶
func NewCommunicateClient(cc *grpc.ClientConn) CommunicateClient
type CommunicateServer ¶
CommunicateServer is the server API for Communicate service.
type Content ¶
type Content struct { Detail string `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Content) Descriptor ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) XXX_DiscardUnknown ¶
func (m *Content) XXX_DiscardUnknown()
func (*Content) XXX_Marshal ¶
func (*Content) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.