Documentation
¶
Index ¶
- Constants
- func HandleError(c *gin.Context, err error, id string, operation string, logger *slog.Logger, ...) bool
- func HandleStreamingOutput(ctx context.Context, c *gin.Context, outputCh <-chan string, ...)
- func ParseLogQueryParams(c *gin.Context, logger *slog.Logger) int
- func SetupSSE(c *gin.Context)
Constants ¶
View Source
const (
DefaultLogLines = 100
)
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleStreamingOutput ¶
func HandleStreamingOutput( ctx context.Context, c *gin.Context, outputCh <-chan string, errCh <-chan error, id string, logger *slog.Logger, )
HandleStreamingOutput handles streaming output from a channel to SSE events
func ParseLogQueryParams ¶
ParseLogQueryParams parses the 'lines' query parameter with a default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.