neko/internal/types/webscoket.go
2020-10-22 16:54:50 +02:00

16 lines
250 B
Go

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