Documentation
¶
Index ¶
- Constants
- func ReadBuildLog(ctx *gin.Context)
- func ReadLog[T any](ginCtx *gin.Context, logReader io.Reader, ...)
- func ReadRunnerLog(ctx *gin.Context)
- func ReadServerLog(ctx *gin.Context)
- func ReadTargetLog(ctx *gin.Context)
- func ReadWorkspaceLog(ctx *gin.Context)
- func WriteBuildLog(ctx *gin.Context)
- func WriteRunnerLog(ctx *gin.Context)
- func WriteTargetLog(ctx *gin.Context)
- func WriteWorkspaceLog(ctx *gin.Context)
Constants ¶
View Source
const TIMEOUT = 300 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func ReadBuildLog ¶ added in v0.26.0
func ReadLog ¶ added in v0.52.0
func ReadLog[T any](ginCtx *gin.Context, logReader io.Reader, readFunc func(context.Context, io.Reader, bool, chan T, chan error), wsWriteFunc func(*websocket.Conn, chan T, chan error))
ReadLog reads from the logReader and writes to the websocket. T is the type of the message to be read from the logReader
func ReadRunnerLog ¶ added in v0.52.0
func ReadServerLog ¶
func ReadTargetLog ¶ added in v0.52.0
func ReadWorkspaceLog ¶
func WriteBuildLog ¶ added in v0.52.0
func WriteRunnerLog ¶ added in v0.52.0
func WriteTargetLog ¶ added in v0.52.0
func WriteWorkspaceLog ¶ added in v0.52.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.