payload

package
v0.2.2-1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobDetailMetadata

type JobDetailMetadata struct {
	ID        string                 `json:"id"`
	JobName   string                 `json:"job_name"`
	Timestamp time.Time              `json:"timestamp"`
	Command   []string               `json:"command,omitempty"`
	Metadata  PayloadRegularMetadata `json:"metadata,omitempty"`
}

type JobPayload

type JobPayload struct {
	Request   PayloadRequestEnum     `json:"request"`
	Timestamp time.Time              `json:"timestamp"`
	Metadata  PayloadRegularMetadata `json:"metadata,omitempty"`
}

func (*JobPayload) MarshalMetadata

func (j *JobPayload) MarshalMetadata(target any) error

func (*JobPayload) UnmarshalMetadata

func (j *JobPayload) UnmarshalMetadata(target any) error

type JobResponse

type JobResponse struct {
	Status   JobStatusEnum `json:"status"`
	ExitCode int           `json:"exitcode"`
	JobDetailMetadata
}

type JobSearchMetadata

type JobSearchMetadata struct {
	RequestMeta bool   `json:"request_meta"`
	Search      string `json:"search"`
	ActiveOnly  bool   `json:"active_only"`
}

type JobStatusEnum

type JobStatusEnum int32
const (
	JOB_RUNNING JobStatusEnum = 1 << iota
	JOB_FINISH
	JOB_FAILED
	JOB_NOT_RUNNING
)

type PayloadRegularMetadata

type PayloadRegularMetadata any

type PayloadRequestEnum

type PayloadRequestEnum int32
const (
	REQUEST_EXECUTE_JOB PayloadRequestEnum = 1 << iota
	REQUEST_LIST
	REQUEST_WAIT
	REQUEST_STATUS
	REQUEST_VIBE_CHECK
)

Jump to

Keyboard shortcuts

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