Documentation
¶
Index ¶
- Variables
- type Ping
- type Server
- func (s *Server) Appdir(path, file string)
- func (s *Server) EmbedTempl(path string, fsys embed.FS, data any)
- func (s *Server) EndPointCount() int
- func (s *Server) Register(p string, h http.Handler) error
- func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Start(done chan any)
- type WServe
- type Websock
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Websocks []*Websock
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*http.Server `json:"-"`
*http.ServeMux `json:"-"`
*template.Template `json:"-"`
EndPoints sync.Map `json:"routes"`
}
Server serves up HTTP on Addr (default 0.0.0.0:8011) It takes care of REST API, serving the web app if Appdir does not equal nil and initial Websocket upgrade
func (*Server) EndPointCount ¶
Click to show internal directories.
Click to hide internal directories.