mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
15 lines
226 B
Go
15 lines
226 B
Go
package types
|
|
|
|
import "net/http"
|
|
|
|
type WebSocket interface {
|
|
Send(v interface{}) error
|
|
Destroy() error
|
|
}
|
|
|
|
type WebSocketManager interface {
|
|
Start()
|
|
Shutdown() error
|
|
Upgrade(w http.ResponseWriter, r *http.Request) error
|
|
}
|