Documentation ¶
Index ¶
- func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)
- 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) GetChannel() string
- func (m *ChatResponse) GetText() string
- func (m *ChatResponse) GetTimestamp() string
- func (m *ChatResponse) GetUser() string
- 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 ChatServiceClient
- type ChatServiceServer
- type ChatService_ChatClient
- type ChatService_ChatServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatServiceServer ¶
func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)
Types ¶
type ChatRequest ¶
type ChatRequest struct { Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 { Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChatResponse) Descriptor ¶
func (*ChatResponse) Descriptor() ([]byte, []int)
func (*ChatResponse) GetChannel ¶
func (m *ChatResponse) GetChannel() string
func (*ChatResponse) GetText ¶
func (m *ChatResponse) GetText() string
func (*ChatResponse) GetTimestamp ¶
func (m *ChatResponse) GetTimestamp() string
func (*ChatResponse) GetUser ¶
func (m *ChatResponse) GetUser() string
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 ChatServiceClient ¶
type ChatServiceClient interface {
Chat(ctx context.Context, opts ...grpc.CallOption) (ChatService_ChatClient, error)
}
ChatServiceClient is the client API for ChatService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatServiceClient ¶
func NewChatServiceClient(cc *grpc.ClientConn) ChatServiceClient
type ChatServiceServer ¶
type ChatServiceServer interface {
Chat(ChatService_ChatServer) error
}
ChatServiceServer is the server API for ChatService service.
type ChatService_ChatClient ¶
type ChatService_ChatClient interface { Send(*ChatRequest) error Recv() (*ChatResponse, error) grpc.ClientStream }
type ChatService_ChatServer ¶
type ChatService_ChatServer interface { Send(*ChatResponse) error Recv() (*ChatRequest, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.