Documentation ¶ Index ¶ type Chat func New() *Chat func (s *Chat) Auth(name, password string) (res *User, check bool) func (s *Chat) Close() func (s *Chat) Connect() chan<- rest.IStream func (s *Chat) Register(name, password string) *User func (s *Chat) SearchByID(id int64) (*User, bool) type User func (s *User) SendMessage(sender *User, message string, file rest.IReadCloserLen) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Chat ¶ type Chat struct { // contains filtered or unexported fields } func New ¶ func New() *Chat func (*Chat) Auth ¶ func (s *Chat) Auth(name, password string) (res *User, check bool) func (*Chat) Close ¶ func (s *Chat) Close() func (*Chat) Connect ¶ func (s *Chat) Connect() chan<- rest.IStream func (*Chat) Register ¶ func (s *Chat) Register(name, password string) *User func (*Chat) SearchByID ¶ func (s *Chat) SearchByID(id int64) (*User, bool) type User ¶ type User struct { ID int64 `rest:"default"` Name string `rest:"default"` Password string `rest:"ignore"` Streams []rest.IStream } func (*User) SendMessage ¶ func (s *User) SendMessage(sender *User, message string, file rest.IReadCloserLen) Source Files ¶ View all Source files chat.go user.go Click to show internal directories. Click to hide internal directories.