service

package
v0.0.0-...-19a8594 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Username string
	Conn     *ConnShim
	Done     chan interface{}
	Text     chan string
}

func (*Client) ReadMessageInput

func (c *Client) ReadMessageInput(f *os.File) error

func (*Client) ReadUsernameInput

func (c *Client) ReadUsernameInput(f *os.File) error

func (*Client) ReceiveHandler

func (c *Client) ReceiveHandler()

func (*Client) SendMessage

func (c *Client) SendMessage(text string) error

type ConnShim

type ConnShim struct {
	*websocket.Conn
}

type Server

type Server struct {
	Rdb *redis.Client
}

func (*Server) HandleConnections

func (s *Server) HandleConnections(w http.ResponseWriter, r *http.Request)

func (*Server) HandleMessages

func (s *Server) HandleMessages()

Jump to

Keyboard shortcuts

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