Documentation
¶
Overview ¶
Package htxtd serves static HyperTexting website output.
Index ¶
- func AbsoluteDirectory(workingDirectory, directory string) (string, error)
- type Server
- func (server *Server) Address() string
- func (server *Server) Handler() http.Handler
- func (server *Server) Listen() (net.Listener, error)
- func (server *Server) Reload()
- func (server *Server) Run(ctx context.Context) error
- func (server *Server) Serve(ctx context.Context, listener net.Listener) error
- func (server *Server) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsoluteDirectory ¶
AbsoluteDirectory resolves a directory from a working directory.
Types ¶
type Server ¶
type Server struct {
Directory string
Bind string
Port int
LiveReload bool
LogWriter io.Writer
// contains filtered or unexported fields
}
Server serves a static website directory over HTTP.
func (*Server) Reload ¶
func (server *Server) Reload()
Reload notifies connected live-reload clients after a successful build.
Click to show internal directories.
Click to hide internal directories.