invoke

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyAPI

func DestroyAPI(api *API)

Types

type API

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

func NewAPI

func NewAPI(baseUrl string, timeout time.Duration) *API

func (*API) Delete

func (api *API) Delete(methodName string, queryParams map[string]string, headers map[string]string) ([]byte, error)

func (*API) DeleteWithoutHeaders added in v0.1.1

func (api *API) DeleteWithoutHeaders(methodName string, queryParams map[string]string) ([]byte, error)

func (*API) Get

func (api *API) Get(methodName string, queryParams map[string]string, headers map[string]string) ([]byte, error)

func (*API) GetWithoutHeaders added in v0.1.1

func (api *API) GetWithoutHeaders(methodName string, queryParams map[string]string) ([]byte, error)

func (*API) Post

func (api *API) Post(methodName string, headers map[string]string, data []byte) ([]byte, error)

func (*API) PostJSON

func (api *API) PostJSON(methodName string, data []byte, headers map[string]string) ([]byte, error)

func (*API) PostWithoutHeaders added in v0.1.1

func (api *API) PostWithoutHeaders(methodName string, data []byte) ([]byte, error)

func (*API) Put

func (api *API) Put(methodName string, headers map[string]string, data []byte) ([]byte, error)

func (*API) PutJSON

func (api *API) PutJSON(methodName string, data []byte, headers map[string]string) ([]byte, error)

func (*API) PutWithoutHeaders added in v0.1.1

func (api *API) PutWithoutHeaders(methodName string, data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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