Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSingelWebapp ¶
func NewSingelWebapp(listener interfaces.Listener, opt interfaces.SingelWebappOptions, router *mux.Router) (err error)
Types ¶
type FileListener ¶
type FileListener struct { BundleJS []*FileListener WorkerJS []*FileListener sync.RWMutex // contains filtered or unexported fields }
func NewFileListener ¶
func NewFileListener(listener interfaces.Listener, options interfaces.SingelWebappOptions, index bool, path string, info os.FileInfo, distpath string, router *mux.Router) *FileListener
func (*FileListener) Handler ¶
func (c *FileListener) Handler(w http.ResponseWriter, r *http.Request)
func (*FileListener) IndexHandler ¶
func (c *FileListener) IndexHandler(w http.ResponseWriter, r *http.Request)
func (*FileListener) ReloadData ¶
func (c *FileListener) ReloadData()
type SingelWebapp ¶
func (*SingelWebapp) LocalFile ¶
func (c *SingelWebapp) LocalFile() (err error)
func (*SingelWebapp) Watcher ¶
func (c *SingelWebapp) Watcher()
func (*SingelWebapp) WatchingFile ¶
func (c *SingelWebapp) WatchingFile(f *FileListener)
Click to show internal directories.
Click to hide internal directories.