responses

package
v0.0.0-...-8df2434 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentAgentResponse

type CurrentAgentResponse struct {
	IsRunning bool              `json:"is_running"`
	ID        string            `json:"id"`
	Config    map[string]string `json:"config"`
}

CurrentAgentResponse is the struct to represent the response from the HTTP server for the currently running agent

type InvalidResponse

type InvalidResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

InvalidResponse represents a failure from the server

type ValidResponse

type ValidResponse[T interface{}] struct {
	Success  bool `json:"success"`
	Response T    `json:"response,omitempty"`
}

ValidResponse represents a 200 success response

Jump to

Keyboard shortcuts

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