handler

package
v0.0.0-...-e8a6761 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 GetReport

func GetReport(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

func ReadFileIfModified(filePath string, lastMod time.Time) ([]byte, time.Time, error)

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

func Writer

func Writer(ws *websocket.Conn, filePath string, lastMod time.Time)

Writer writes messages to the WebSocket client at regular intervals.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL