Documentation ¶
Index ¶
- Variables
- func CheckHealth(c *fiber.Ctx) error
- func GetReport(c *fiber.Ctx) error
- func GetStatus(c *websocket.Conn)
- func NotFoundResponse(c *fiber.Ctx) error
- func ReadFileIfModified(filePath string, lastMod time.Time) ([]byte, time.Time, error)
- func Reader(ws *websocket.Conn)
- func StartAnalysis(c *fiber.Ctx) error
- func Writer(ws *websocket.Conn, filePath string, lastMod time.Time)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidID = errors.New("invalid id parameter") ErrEmptyID = errors.New("empty id") )
Functions ¶
func CheckHealth ¶
func CheckHealth(c *fiber.Ctx) error
func GetStatus ¶
func GetStatus(c *websocket.Conn)
GetStatus handles the WebSocket connection and sends status updates.
func NotFoundResponse ¶
func NotFoundResponse(c *fiber.Ctx) error
func ReadFileIfModified ¶
ReadFileIfModified checks if the file has been modified since the last time it was read.
func Reader ¶
func Reader(ws *websocket.Conn)
Reader reads incoming messages from the WebSocket client.
func StartAnalysis ¶
func StartAnalysis(c *fiber.Ctx) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.