taskgrp

package
v0.0.0-...-8414c70 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package taskgrp provides handlers for inspecting tasks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTaskResponse

type GetTaskResponse struct {
	Data taskcommon.State `json:"data"`
}

type Handler

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

func New

func New(task task.Manager) *Handler

func (*Handler) Get

GetTask godoc

@Summary		Inspect task state by ID
@Description	Inspect task state by ID
@Tags			Task
@Accept			json
@Produce		json
@Param			id	path	string	true	"Task ID"
@Security		Bearer
@Success		200	{object}	GetTaskResponse
@Router			/task/{id} [get]
@Security		Bearer
@Failure		400
@Failure		404

func (*Handler) Register

func (h *Handler) Register(a *web.App)

Jump to

Keyboard shortcuts

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