neko/internal/types/websocket.go
2020-11-25 18:36:33 +01:00

15 lines
230 B
Go

package types
import "net/http"
type WebSocketPeer interface {
Send(v interface{}) error
Destroy() error
}
type WebSocketManager interface {
Start()
Shutdown() error
Upgrade(w http.ResponseWriter, r *http.Request) error
}