application

package
v0.0.0-...-94ad0c4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UIHtml string
View Source
var UITemplate *template.Template = template.Must(template.New("").Parse(UIHtml))

Functions

This section is empty.

Types

type Application

type Application struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

func New

func New() *Application

func (*Application) ListenAndServe

func (a *Application) ListenAndServe(addr string) error

type Broadcast

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

func NewBroadcast

func NewBroadcast(topic string) *Broadcast

func (*Broadcast) NewClient

func (b *Broadcast) NewClient(conn *websocket.Conn) *Client

create client that is attached to that broadcast

func (*Broadcast) Run

func (b *Broadcast) Run()

type Client

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

func NewClient

func NewClient(b *Broadcast, conn *websocket.Conn) *Client

func (*Client) Register

func (c *Client) Register()

func (*Client) Unregister

func (c *Client) Unregister()

Jump to

Keyboard shortcuts

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