warp

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET    RequestMethod = "GET"
	POST   RequestMethod = "POST"
	PUT    RequestMethod = "PUT"
	DELETE RequestMethod = "DELETE"
	JSON   ContentType   = "application/json"
)

Variables

This section is empty.

Functions

func WarpFirmware

func WarpFirmware(firmware string) string

func WarpType

func WarpType(warpType string) string

Types

type ContentType

type ContentType string

type Request

type Request struct {
	Warp           string
	Path           string
	ContentType    ContentType
	Username       string
	Password       string
	OutputRenderer renderer.Renderer
}

func (*Request) Get

func (req *Request) Get() ([]byte, error)

func (*Request) GetJson

func (req *Request) GetJson() (map[string]interface{}, error)

func (*Request) Post added in v0.0.5

func (req *Request) Post(data []byte) ([]byte, error)

func (*Request) Put added in v0.0.5

func (req *Request) Put(data []byte) ([]byte, error)

type RequestMethod

type RequestMethod string

Jump to

Keyboard shortcuts

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