ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PacketTypeChat = iota
	PacketTypeAdmin
	PacketTypeCmd
)

Variables

View Source
var EnableNotification bool

Functions

This section is empty.

Types

type Packet

type Packet struct {
	User string
	Msg  string
	Type PacketType
}

type PacketType

type PacketType int

type UI

type UI struct {
	FromClient chan Packet
	ToClient   chan Packet
	// contains filtered or unexported fields
}

func New

func New(user string, fromClient chan Packet, toClient chan Packet) UI

func (*UI) Run

func (u *UI) Run()

func (*UI) Write

func (u *UI) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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