proxy

package
v2.0.0-...-8f2ac71 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET    = "GET"
	POST   = "POST"
	DELETE = "DELETE"
)

Variables

View Source
var Services = make(map[string]string)

Functions

func Delete

func Delete(service, url string, body io.Reader) (respBody []byte, err error)

func Get

func Get(service string, url string) (respBody []byte, err error)

func GetStatus

func GetStatus(service string, url string) error

func GetWithoutToken

func GetWithoutToken(service string, url string) (respBody []byte, err error)

func Init

func Init(app *iris.Application)

func Post

func Post(service, url string, body io.Reader) (respBody []byte, err error)

func PostBinary

func PostBinary(service string, url string, body *[]byte) ([]byte, error)

func PostImage

func PostImage(service string, url string, body *[]byte) ([]byte, error)

func PostMultipart

func PostMultipart(service string, url string, formValues map[string]string, fileKey, filePath string) ([]byte, error)

func PostString

func PostString(service string, url string, body *string) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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