Documentation ¶
Index ¶
- func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)
- type ChatServiceClient
- type ChatServiceServer
- type ChatService_ConnectClient
- type ChatService_ConnectServer
- type Post
- func (*Post) Descriptor() ([]byte, []int)
- func (m *Post) GetMessage() string
- func (m *Post) GetName() string
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) String() string
- func (m *Post) XXX_DiscardUnknown()
- func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Post) XXX_Merge(src proto.Message)
- func (m *Post) XXX_Size() int
- func (m *Post) XXX_Unmarshal(b []byte) error
- type UnimplementedChatServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatServiceServer ¶
func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)
Types ¶
type ChatServiceClient ¶
type ChatServiceClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (ChatService_ConnectClient, 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 {
Connect(ChatService_ConnectServer) error
}
ChatServiceServer is the server API for ChatService service.
type Post ¶
type Post struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Post) Descriptor ¶
func (*Post) GetMessage ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) XXX_DiscardUnknown ¶
func (m *Post) XXX_DiscardUnknown()
func (*Post) XXX_Unmarshal ¶
type UnimplementedChatServiceServer ¶
type UnimplementedChatServiceServer struct { }
UnimplementedChatServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatServiceServer) Connect ¶
func (*UnimplementedChatServiceServer) Connect(srv ChatService_ConnectServer) error
Click to show internal directories.
Click to hide internal directories.