httpBashRequests

package
v0.0.0-...-425a191 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: ISC Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(str string) ([]byte, error)

Run will run a bash command through HBR, and return the result of said command

func RunBinary

func RunBinary(str, binPath, binArg string, splitBody bool) ([]byte, error)

RunBinary will run binPath with binArg through HBR, and return the result of said command

func Setup

func Setup(clientIn *Client)

Setup will configure the client to use for Run

Types

type Client

type Client struct {
	Mutex      sync.Mutex
	Addr       string
	HttpClient *http.Client
}

Jump to

Keyboard shortcuts

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