zproto

package
v0.0.0-...-11651c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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
}

type VoidRsp2

type VoidRsp2 struct {
}

func (*VoidRsp2) Descriptor

func (*VoidRsp2) Descriptor() ([]byte, []int)

func (*VoidRsp2) ProtoMessage

func (*VoidRsp2) ProtoMessage()

func (*VoidRsp2) Reset

func (m *VoidRsp2) Reset()

func (*VoidRsp2) String

func (m *VoidRsp2) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL