Documentation ¶
Index ¶
- func RegisterChatterServer(s *grpc.Server, srv ChatterServer)
- type ChatRequest
- func (*ChatRequest) Descriptor() ([]byte, []int)
- func (m *ChatRequest) GetText() string
- func (*ChatRequest) ProtoMessage()
- func (m *ChatRequest) Reset()
- func (m *ChatRequest) String() string
- func (m *ChatRequest) XXX_DiscardUnknown()
- func (m *ChatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChatRequest) XXX_Merge(src proto.Message)
- func (m *ChatRequest) XXX_Size() int
- func (m *ChatRequest) XXX_Unmarshal(b []byte) error
- type ChatResponse
- func (*ChatResponse) Descriptor() ([]byte, []int)
- func (m *ChatResponse) GetOk() bool
- func (*ChatResponse) ProtoMessage()
- func (m *ChatResponse) Reset()
- func (m *ChatResponse) String() string
- func (m *ChatResponse) XXX_DiscardUnknown()
- func (m *ChatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChatResponse) XXX_Merge(src proto.Message)
- func (m *ChatResponse) XXX_Size() int
- func (m *ChatResponse) XXX_Unmarshal(b []byte) error
- type ChatterClient
- type ChatterServer
- type UnimplementedChatterServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatterServer ¶
func RegisterChatterServer(s *grpc.Server, srv ChatterServer)
Types ¶
type ChatRequest ¶
type ChatRequest 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:"-"` }
ChatRequest is the request being sent from a client including some text.
func (*ChatRequest) Descriptor ¶
func (*ChatRequest) Descriptor() ([]byte, []int)
func (*ChatRequest) GetText ¶
func (m *ChatRequest) GetText() string
func (*ChatRequest) ProtoMessage ¶
func (*ChatRequest) ProtoMessage()
func (*ChatRequest) Reset ¶
func (m *ChatRequest) Reset()
func (*ChatRequest) String ¶
func (m *ChatRequest) String() string
func (*ChatRequest) XXX_DiscardUnknown ¶
func (m *ChatRequest) XXX_DiscardUnknown()
func (*ChatRequest) XXX_Marshal ¶
func (m *ChatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChatRequest) XXX_Merge ¶
func (m *ChatRequest) XXX_Merge(src proto.Message)
func (*ChatRequest) XXX_Size ¶
func (m *ChatRequest) XXX_Size() int
func (*ChatRequest) XXX_Unmarshal ¶
func (m *ChatRequest) XXX_Unmarshal(b []byte) error
type ChatResponse ¶
type ChatResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChatResponse are the response given back after a ChatRequest have been sent.
func (*ChatResponse) Descriptor ¶
func (*ChatResponse) Descriptor() ([]byte, []int)
func (*ChatResponse) GetOk ¶
func (m *ChatResponse) GetOk() bool
func (*ChatResponse) ProtoMessage ¶
func (*ChatResponse) ProtoMessage()
func (*ChatResponse) Reset ¶
func (m *ChatResponse) Reset()
func (*ChatResponse) String ¶
func (m *ChatResponse) String() string
func (*ChatResponse) XXX_DiscardUnknown ¶
func (m *ChatResponse) XXX_DiscardUnknown()
func (*ChatResponse) XXX_Marshal ¶
func (m *ChatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChatResponse) XXX_Merge ¶
func (m *ChatResponse) XXX_Merge(src proto.Message)
func (*ChatResponse) XXX_Size ¶
func (m *ChatResponse) XXX_Size() int
func (*ChatResponse) XXX_Unmarshal ¶
func (m *ChatResponse) XXX_Unmarshal(b []byte) error
type ChatterClient ¶
type ChatterClient interface { // Chat will take a ChatRequest and return a ChatResponse. Chat(ctx context.Context, in *ChatRequest, opts ...grpc.CallOption) (*ChatResponse, error) }
ChatterClient is the client API for Chatter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatterClient ¶
func NewChatterClient(cc *grpc.ClientConn) ChatterClient
type ChatterServer ¶
type ChatterServer interface { // Chat will take a ChatRequest and return a ChatResponse. Chat(context.Context, *ChatRequest) (*ChatResponse, error) }
ChatterServer is the server API for Chatter service.
type UnimplementedChatterServer ¶
type UnimplementedChatterServer struct { }
UnimplementedChatterServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatterServer) Chat ¶
func (*UnimplementedChatterServer) Chat(ctx context.Context, req *ChatRequest) (*ChatResponse, error)
Click to show internal directories.
Click to hide internal directories.