ws

package
v0.0.0-...-ae089e8 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	sync.RWMutex
	Chan map[string]*Mess
}

func NewChannel

func NewChannel() (c *Channel)

func (*Channel) AddClient

func (c *Channel) AddClient(a string, w http.ResponseWriter, r *http.Request) (err error)

func (*Channel) Close

func (c *Channel) Close(a string)

func (*Channel) NewChan

func (c *Channel) NewChan(a string) (err error)

type Client

type Client struct {
	Hh http.Header
	// contains filtered or unexported fields
}

type Hub

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

func NewHub

func NewHub() (c *Hub)

type Mess

type Mess struct {
	Hub    *Hub
	Client []*Client
	Close  chan bool
}

Jump to

Keyboard shortcuts

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