chatserver

package
v0.0.0-...-8eb3b63 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server customer server

func NewChatServer

func NewChatServer() *Server

NewChatServer novo chat server

func (*Server) Send

func (s *Server) Send(ctx context.Context, message *wrappers.StringValue) (*empty.Empty, error)

Send sends message to the server

func (*Server) Subscribe

func (s *Server) Subscribe(e *empty.Empty, stream pb.ChatService_SubscribeServer) error

Subscribe is streaming method to get echo messages from the server

Jump to

Keyboard shortcuts

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