request

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskPayload

type TaskPayload struct {
	Type      TaskType `json:"type"`
	TaskId    uint     `json:"task_id"`    // del,edit,stop,start
	HarborKey string   `json:"harbor_key"` // harbor_key
	TaskName  string   `json:"task_name"`  // taskName
	Path      string   `json:"path"`       // exec path
	Cmd       string   `json:"cmd"`        // 执行命令
	Heartbeat string   `json:"heartbeat"`  // 心跳地址
}

func (*TaskPayload) Validate

func (t *TaskPayload) Validate() error

type TaskType

type TaskType string
const (
	TaskAdd   TaskType = "TaskAdd"
	TaskDel   TaskType = "TaskDel"
	TaskEdit  TaskType = "TaskEdit"
	TaskStop  TaskType = "TaskStop"
	TaskStart TaskType = "TaskStart"
)

Jump to

Keyboard shortcuts

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