Documentation
¶
Index ¶
- type DevServer
- func (s *DevServer) Connect(w http.ResponseWriter, r *http.Request)
- func (s *DevServer) Error(w http.ResponseWriter, r *http.Request)
- func (s *DevServer) Reload(w http.ResponseWriter, r *http.Request)
- func (s *DevServer) SendError(message string)
- func (s *DevServer) SendReload()
- func (s *DevServer) Start() error
- func (s *DevServer) View(w http.ResponseWriter, r *http.Request)
- func (s *DevServer) ViewDefault(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevServer ¶
type DevServer struct { Port string Index string StaticDir string WatchDir string OnReload func() IsStart bool // contains filtered or unexported fields }
func (*DevServer) SendReload ¶
func (s *DevServer) SendReload()
func (*DevServer) View ¶ added in v0.2.2
func (s *DevServer) View(w http.ResponseWriter, r *http.Request)
func (*DevServer) ViewDefault ¶ added in v0.3.0
func (s *DevServer) ViewDefault(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.