Documentation ¶
Index ¶
- type Server
- func (s *Server) ChangeDefault(p string)
- func (s *Server) ChangeJS(p string)
- func (s *Server) ChangeJSON(p string)
- func (s *Server) HowManyWS() int
- func (s *Server) ReadFromConn(n int) wsData
- func (s *Server) StartBackground(addr string)
- func (s *Server) StopBackground() error
- func (s *Server) WriteToConn(n int, data wsData)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server type is an http.Server type with pre-defined responses for *.js pages, *.json pages, and other pages
func (*Server) ChangeDefault ¶
ChangeDefault function sets de default response
func (*Server) ChangeJSON ¶
ChangeJSON function sets the response for *.json requests
func (*Server) ReadFromConn ¶
ReadFromConn function reads from channel
func (*Server) StartBackground ¶
StartBackground function starts a webserver from a goroutine addr describe where this webserver will listen for connections
func (*Server) StopBackground ¶
StopBackground function shutdowns the webserver
func (*Server) WriteToConn ¶
WriteToConn function writes to channel
Click to show internal directories.
Click to hide internal directories.