Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticServer ¶
type StaticServer struct {
PublicDir string
BaseDir string
Notifier chan []byte
// contains filtered or unexported fields
}
func NewStaticServer ¶
func NewStaticServer(dir, base string) *StaticServer
func (*StaticServer) Listen ¶
func (ss *StaticServer) Listen()
func (*StaticServer) ServeHTTP ¶
func (ss *StaticServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.