chat_service

package
v0.0.0-...-0fea03e Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: MIT Imports: 5 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Author) GetName

func (m *Author) GetName() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) Reset

func (m *Author) Reset()

func (*Author) String

func (m *Author) String() string

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_StreamClient interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ClientStream
}

type Chat_StreamServer

type Chat_StreamServer interface {
	Send(*Message) error
	Recv() (*Message, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

func (*Message) GetAuthor

func (m *Message) GetAuthor() *Author

func (*Message) GetBody

func (m *Message) GetBody() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

Jump to

Keyboard shortcuts

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