Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHeaderTagFound = errors.New("no header tag found")
Functions ¶
This section is empty.
Types ¶
type Fileserver ¶
type Fileserver struct {
// contains filtered or unexported fields
}
func NewFileServer ¶
func NewFileServer(wsPort int, wsPath string, forceReload bool) *Fileserver
func (*Fileserver) Start ¶
func (fs *Fileserver) Start(ctx context.Context) error
Start listening to file events, update mirror and stream notifications on which files to update
func (*Fileserver) WsHandler ¶
func (fs *Fileserver) WsHandler(ws *websocket.Conn)
WsHandler echoes received messages back to the client.
Click to show internal directories.
Click to hide internal directories.