Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidClient = errors.New("invalid client")
)
Functions ¶
This section is empty.
Types ¶
type Ws ¶
type Ws interface { Broadcast(bytes []byte) Find(id ...int) ([]Client, error) FindOne(id int) (Client, error) Serve(req *http.Request, res http.ResponseWriter, id int) error OnRead(fn func(bytes []byte)) Ws MustFind(id ...int) []Client MustFindOne(id int) Client MustServe(req *http.Request, res http.ResponseWriter, id int) }
Click to show internal directories.
Click to hide internal directories.