Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Networking ¶
type Networking struct { HandshakeChan chan *SuccessfulHandshakeData // contains filtered or unexported fields }
func NewNetworking ¶
func NewNetworking(cfg *config.Config) *Networking
func (*Networking) HandShake ¶
func (n *Networking) HandShake(w http.ResponseWriter, r *http.Request)
func (*Networking) ListenAndServe ¶
func (n *Networking) ListenAndServe(address, port string) error
func (*Networking) PreHandShake ¶
func (n *Networking) PreHandShake(response http.ResponseWriter, request *http.Request) ( *websocket.Conn, *jwt.MapClaims, bool, *api.Handshake, )
PreHandShake TODO: it's "god" method needs to be simplified // antst: agree :)
type SuccessfulHandshakeData ¶
Click to show internal directories.
Click to hide internal directories.