Documentation ¶
Overview ¶
Package zproto is a generated protocol buffer package.
It is generated from these files:
zproto.proto
It has these top-level messages:
ChatMessage ChatSession VoidRsp2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatTestServer ¶
func RegisterChatTestServer(s *grpc.Server, srv ChatTestServer)
Types ¶
type ChatMessage ¶
type ChatMessage struct { SenderSessionId string `protobuf:"bytes,1,opt,name=sender_session_id,json=senderSessionId" json:"sender_session_id,omitempty"` MessageData string `protobuf:"bytes,3,opt,name=message_data,json=messageData" json:"message_data,omitempty"` }
func (*ChatMessage) Descriptor ¶
func (*ChatMessage) Descriptor() ([]byte, []int)
func (*ChatMessage) GetMessageData ¶
func (m *ChatMessage) GetMessageData() string
func (*ChatMessage) GetSenderSessionId ¶
func (m *ChatMessage) GetSenderSessionId() string
func (*ChatMessage) ProtoMessage ¶
func (*ChatMessage) ProtoMessage()
func (*ChatMessage) Reset ¶
func (m *ChatMessage) Reset()
func (*ChatMessage) String ¶
func (m *ChatMessage) String() string
type ChatSession ¶
type ChatSession struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"`
}
func (*ChatSession) Descriptor ¶
func (*ChatSession) Descriptor() ([]byte, []int)
func (*ChatSession) GetSessionId ¶
func (m *ChatSession) GetSessionId() string
func (*ChatSession) ProtoMessage ¶
func (*ChatSession) ProtoMessage()
func (*ChatSession) Reset ¶
func (m *ChatSession) Reset()
func (*ChatSession) String ¶
func (m *ChatSession) String() string
type ChatTestClient ¶
type ChatTestClient interface { Connect(ctx context.Context, in *ChatSession, opts ...grpc.CallOption) (ChatTest_ConnectClient, error) SendChat(ctx context.Context, in *ChatMessage, opts ...grpc.CallOption) (*VoidRsp2, error) }
func NewChatTestClient ¶
func NewChatTestClient(cc *grpc.ClientConn) ChatTestClient
type ChatTestServer ¶
type ChatTestServer interface { Connect(*ChatSession, ChatTest_ConnectServer) error SendChat(context.Context, *ChatMessage) (*VoidRsp2, error) }
type ChatTest_ConnectClient ¶
type ChatTest_ConnectClient interface { Recv() (*ChatMessage, error) grpc.ClientStream }
type ChatTest_ConnectServer ¶
type ChatTest_ConnectServer interface { Send(*ChatMessage) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.