Documentation ¶
Index ¶
- Constants
- func PortIsUsed(port int) bool
- func StartWatcher(name string, callback func(op fsnotify.Event)) error
- type StaticServer
- func (s *StaticServer) Render404(w http.ResponseWriter)
- func (s *StaticServer) Render500(w http.ResponseWriter, err error)
- func (s *StaticServer) RenderDir(w http.ResponseWriter, dirPath string)
- func (s *StaticServer) RenderFile(w http.ResponseWriter, r *http.Request, filePath string)
- func (s *StaticServer) RenderHtml(w http.ResponseWriter, filePath string)
- func (s *StaticServer) Run() error
- type WSManager
Constants ¶
View Source
const FreshUrl = "/ws-go-live-server"
View Source
const InjectScript = `` /* 544-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StaticServer ¶ added in v1.0.2
type StaticServer struct { Base string Index string Port int Live bool // contains filtered or unexported fields }
func (*StaticServer) Render404 ¶ added in v1.0.2
func (s *StaticServer) Render404(w http.ResponseWriter)
func (*StaticServer) Render500 ¶ added in v1.0.2
func (s *StaticServer) Render500(w http.ResponseWriter, err error)
func (*StaticServer) RenderDir ¶ added in v1.0.2
func (s *StaticServer) RenderDir(w http.ResponseWriter, dirPath string)
func (*StaticServer) RenderFile ¶ added in v1.0.2
func (s *StaticServer) RenderFile(w http.ResponseWriter, r *http.Request, filePath string)
func (*StaticServer) RenderHtml ¶ added in v1.0.2
func (s *StaticServer) RenderHtml(w http.ResponseWriter, filePath string)
func (*StaticServer) Run ¶ added in v1.0.2
func (s *StaticServer) Run() error
Click to show internal directories.
Click to hide internal directories.