hobbit

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient() *http.Client

func ToPrettyJson

func ToPrettyJson(body []byte) (string, error)

Types

type HttpGetManager

type HttpGetManager interface {
	Bytes(url string) ([]byte, error)
	PrettyJson(url string) (string, error)
	Type(url string, target interface{}) error
}

func NewHttpGetManager

func NewHttpGetManager() HttpGetManager

type HttpPostManager

type HttpPostManager interface {
	Bytes(url string, data []byte) ([]byte, error)
	PrettyJson(url string, data []byte) (string, error)
	FileWithDefaultName(remoteUrl string, directory string) (string, error)
	File(remoteUrl string, directory string, filename string) (string, error)
	Zip(remoteUrl string, directory string) (string, error)
}

func NewHttpPostManager

func NewHttpPostManager() HttpPostManager

type SamHttpGetManager

type SamHttpGetManager struct {
	// contains filtered or unexported fields
}

func (SamHttpGetManager) Bytes

func (s SamHttpGetManager) Bytes(url string) ([]byte, error)

func (SamHttpGetManager) PrettyJson

func (s SamHttpGetManager) PrettyJson(url string) (string, error)

func (SamHttpGetManager) Type

func (s SamHttpGetManager) Type(url string, target interface{}) error

type SamHttpPostManager

type SamHttpPostManager struct {
	// contains filtered or unexported fields
}

func (SamHttpPostManager) Bytes

func (s SamHttpPostManager) Bytes(url string, data []byte) ([]byte, error)

func (SamHttpPostManager) File

func (s SamHttpPostManager) File(remoteUrl string, directory string, filename string) (string, error)

func (SamHttpPostManager) FileWithDefaultName

func (s SamHttpPostManager) FileWithDefaultName(remoteUrl string, directory string) (string, error)

func (SamHttpPostManager) PrettyJson

func (s SamHttpPostManager) PrettyJson(url string, data []byte) (string, error)

func (SamHttpPostManager) Zip

func (s SamHttpPostManager) Zip(remoteUrl string, directory string) (string, error)

Jump to

Keyboard shortcuts

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