shared

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandHandler

func CommandHandler(w http.ResponseWriter, r *http.Request)

Types

type CommandRequest

type CommandRequest struct {
	User    string            `json:"user"`
	Vault   string            `json:"vault,omitempty"`
	Command string            `json:"command"`
	Params  map[string]string `json:"params,omitempty"`
}

func (CommandRequest) String

func (req CommandRequest) String() string

type CommandResponse

type CommandResponse struct {
	Error string   `json:"error,omitempty"`
	Data  []string `json:"data,omitempty"`
}

func (CommandResponse) String

func (res CommandResponse) String() string

Jump to

Keyboard shortcuts

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