utils

package
v0.0.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoArgs      = errors.New("no arguments provided")
	ErrTooManyArgs = errors.New("too many arguments provided")
)

Functions

func SendCommandToDaemon

func SendCommandToDaemon(socketPath, command string) (string, error)

Types

type CommandError added in v0.0.4

type CommandError struct {
	Code int
	Err  error
}

func (*CommandError) Error added in v0.0.4

func (e *CommandError) Error() string

type DaemonResponse

type DaemonResponse struct {
	Success  bool   `json:"success"`
	Response string `json:"response"`
	Error    string `json:"error"`
}

Jump to

Keyboard shortcuts

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