Versions in this module Expand all Collapse all v0 v0.2.0 Apr 28, 2022 Changes in this version + const MsgTypeAdmin + const MsgTypeChat + const MsgTypeCmd + const MsgTypePing + var MsgHandlers = map[string]MsgHandler + type Client struct + FromUI chan ui.Packet + HostPort int + Name string + Scanner NetScanner + ToUI chan ui.Packet + func (c *Client) Start(ctx context.Context) + type DefaultScanner struct + Local bool + func (s *DefaultScanner) FindHost(port int) (string, bool) + type InboundHandler func(*Client, Packet, peerID) + type MsgHandler struct + type MsgType int + type NetScanner interface + FindHost func(int) (string, bool) + type NullScanner struct + func (s *NullScanner) FindHost(port int) (string, bool) + type OutboundHandler func(*Client, ui.Packet) + type Packet struct + Msg string + Type int + User string