Documentation ¶
Index ¶
- type ChatServer
- func (s *ChatServer) Channel(in *pb.ConnectRequest, stream pb.Chat_ChannelServer) error
- func (s *ChatServer) Say(ctx context.Context, in *pb.Text) (*pb.Confirm, error)
- func (s *ChatServer) Users(ctx context.Context, in *pb.Empty) (*pb.UserList, error)
- func (s *ChatServer) Version(ctx context.Context, in *pb.Empty) (*pb.Confirm, error)
- type Connection
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatServer ¶
type ChatServer struct {
// contains filtered or unexported fields
}
func (*ChatServer) Channel ¶
func (s *ChatServer) Channel(in *pb.ConnectRequest, stream pb.Chat_ChannelServer) error
type Connection ¶
func NewConnection ¶
func NewConnection(username string, stream *pb.Chat_ChannelServer) *Connection
func (*Connection) AddStream ¶
func (connect *Connection) AddStream(stream *pb.Chat_ChannelServer)
func (*Connection) Clean ¶
func (connect *Connection) Clean()
func (*Connection) DeleteStream ¶
func (connect *Connection) DeleteStream(server *pb.Chat_ChannelServer)
func (*Connection) NStreams ¶
func (connect *Connection) NStreams() int
Click to show internal directories.
Click to hide internal directories.