service

package
v0.0.0-...-746c951 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	QOTDAddr string
	// contains filtered or unexported fields
}

Agent provides a simple System Agent using REST to install and run programs.

func New

func New(router *gin.Engine, addr string) (*Agent, error)

New creates a new Agent. If addr is empty, it will default to localhost:8080.

func (*Agent) Install

func (a *Agent) Install(c *gin.Context)

Install installs a package on the machine and starts it.

func (*Agent) Start

func (a *Agent) Start() error

Start starts the agent.

Jump to

Keyboard shortcuts

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