neko/internal/types/webscoket.go

16 lines
244 B
Go
Raw Normal View History

package types
import "net/http"
type WebSocket interface {
Address() string
Send(v interface{}) error
Destroy() error
}
type WebSocketHandler interface {
2020-10-29 08:29:18 +13:00
Start()
Shutdown() error
Upgrade(w http.ResponseWriter, r *http.Request) error
}