pause

package
v0.0.0-...-bafe0c7 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller handles HTTP requests for pause operations. It manages pause locks and messaging for debugging sessions.

func New

func New(lockManager *pausectl.Manager, messages chan string, logger cli.Logger) *Controller

New creates a Controller with the given dependencies.

func (*Controller) Delete

func (c *Controller) Delete() http.HandlerFunc

Delete handles DELETE /pauses/{id} requests. It removes an existing pause lock and continues execution.

func (*Controller) Get

func (c *Controller) Get() http.HandlerFunc

Get handles GET /pauses/{id} requests. It retrieves the status of an existing pause lock.

func (*Controller) Patch

func (c *Controller) Patch() http.HandlerFunc

Patch handles PATCH /pauses/{id} requests. It updates the state of an existing pause lock.

func (*Controller) Post

func (c *Controller) Post() http.HandlerFunc

Post handles POST /pauses requests. It creates a new pause lock and broadcasts the pause message.

Jump to

Keyboard shortcuts

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