Documentation ¶
Overview ¶
Package chat_service is a generated protocol buffer package.
It is generated from these files:
service/chat.proto
It has these top-level messages:
Author Message
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatServer ¶
func RegisterChatServer(s *grpc.Server, srv ChatServer)
Types ¶
type Author ¶
type Author struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
Author (Nested) Model
func (*Author) Descriptor ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
type ChatClient ¶
type ChatClient interface { // Stream Messages Endpoint Stream(ctx context.Context, opts ...grpc.CallOption) (Chat_StreamClient, error) }
func NewChatClient ¶
func NewChatClient(cc *grpc.ClientConn) ChatClient
type ChatServer ¶
type ChatServer interface { // Stream Messages Endpoint Stream(Chat_StreamServer) error }
type Chat_StreamClient ¶
type Chat_StreamServer ¶
type Message ¶
type Message struct { Author *Author `protobuf:"bytes,1,opt,name=author" json:"author,omitempty"` Body string `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` }
Message Model
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.