Documentation
¶
Index ¶
- type NetworkTransmissionServer
- func (nt *NetworkTransmissionServer) Coroutine(errChan chan error, secure bool)
- func (nt *NetworkTransmissionServer) Serve(secure bool) error
- func (nt *NetworkTransmissionServer) Shutdown(context context.Context) error
- func (nt *NetworkTransmissionServer) WebsocketHandler(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkTransmissionServer ¶
type NetworkTransmissionServer struct {
// contains filtered or unexported fields
}
func NewNetworkTransmissionServer ¶
func NewNetworkTransmissionServer( writeChannel chan models.Message, moduleInitChan chan []string, moduleCloseChan chan bool, commChannels *comm.CommChannels, port int, ) *NetworkTransmissionServer
-- CONSTRUCTOR
func (*NetworkTransmissionServer) Coroutine ¶
func (nt *NetworkTransmissionServer) Coroutine(errChan chan error, secure bool)
-- COROUTINE FOR SERVER
func (*NetworkTransmissionServer) Serve ¶
func (nt *NetworkTransmissionServer) Serve(secure bool) error
-- Start Server
func (*NetworkTransmissionServer) Shutdown ¶
func (nt *NetworkTransmissionServer) Shutdown(context context.Context) error
-- Shutdown Server
func (*NetworkTransmissionServer) WebsocketHandler ¶
func (nt *NetworkTransmissionServer) WebsocketHandler(w http.ResponseWriter, req *http.Request)
- TODO: WS REQUEST HANDLER
Click to show internal directories.
Click to hide internal directories.