server

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_BIND_ADDRESS = "127.0.0.1"
View Source
const DEFAULT_HTTPS_PORT = 10080
View Source
const DEFAULT_SHUTDOWN_TIMEOUT_SECONDS = 5
View Source
const Version = "1.0.9"

Variables

View Source
var Debug bool
View Source
var Verbose bool

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	Name    string
	Address string
	Version string
	Port    int
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(viperKey string) (*Daemon, error)

func (*Daemon) GetConfig added in v1.0.8

func (d *Daemon) GetConfig() map[string]any

func (*Daemon) Run added in v1.0.8

func (d *Daemon) Run(message string) error

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (d *Daemon) Stop() error

type ExecRequest

type ExecRequest struct {
	Command string
	Args    []string
}

type ExecResponse

type ExecResponse struct {
	Success  bool
	Command  string
	ExitCode int
	Stdout   string
	Stderr   string
}

type FailResponse

type FailResponse struct {
	Success bool
	Error   string
}
type Menu struct {
	Title string
	// contains filtered or unexported fields
}

func NewMenu

func NewMenu(title string, shutdown, complete chan struct{}) (*Menu, error)

type PingResponse

type PingResponse struct {
	Success bool
	Message string
}

type SpawnResponse

type SpawnResponse struct {
	Success  bool
	Command  string
	ExitCode int
}

Jump to

Keyboard shortcuts

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