Documentation
¶
Index ¶
- Variables
- func CrsAuth(app string) context.Handler
- func DBResolver() iris.Handler
- func Error() iris.Handler
- func Upgrader(upgrader gorilla.Upgrader) neffos.Upgrader
- func UserAuth() iris.Handler
- type Socket
- func (s *Socket) NetConn() net.Conn
- func (s *Socket) ReadData(timeout time.Duration) ([]byte, neffos.MessageType, error)
- func (s *Socket) Request() *http.Request
- func (s *Socket) WriteBinary(body []byte, timeout time.Duration) error
- func (s *Socket) WriteText(body []byte, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUpgrader = Upgrader(gorilla.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, })
DefaultUpgrader is a gorilla/websocket Upgrader with all fields set to the default values.
Functions ¶
func DBResolver ¶
func DBResolver() iris.Handler
Types ¶
type Socket ¶
Socket completes the `neffos.Socket` interface, it describes the underline websocket connection.
func (*Socket) WriteBinary ¶
WriteBinary sends a binary message to the remote connection.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.