Versions in this module Expand all Collapse all v1 v1.0.0 Jun 7, 2023 Changes in this version + type Message struct + Content string + From User + System bool + func GenerateMessage(from User) (msg *Message, err error) + func (m Message) String() string + type Notification struct + Event NotificationEvent + User User + func (n Notification) Notify(host string, port int64) (err error) + type NotificationEvent string + const NotificationEventUserJoined + const NotificationEventUserLeft + type Registry struct + func NewRegistry(host string) *Registry + func (r Registry) Host() string + func (r Registry) Register(user User) (err error) + func (r Registry) Unregister(userName string) (err error) + type User struct + Host string + Name string + Network string + NotifyPort int64 + ServerPort int64