chat

package
v0.0.0-...-207d5c5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler() *live.Handler

Types

type ChatInstance

type ChatInstance struct {
	Messages []Message
}

func NewChatInstance

func NewChatInstance(s *live.Socket) *ChatInstance

type Message

type Message struct {
	ID   string // Unique ID per message so that we can use `live-update`.
	User string
	Msg  string
}

func NewMessage

func NewMessage(p live.Params) Message

Jump to

Keyboard shortcuts

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