chat

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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