http

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	BaseURL   string
	APIKey    string
	APISecret string
}

func New

func New(url, apiKey, apiSecret string) *HTTP

func (*HTTP) SignedPostForm

func (h *HTTP) SignedPostForm(path string, params url.Values, response interface{}) (err error)

func (*HTTP) SignedRequest

func (h *HTTP) SignedRequest(ctx context.Context, method string, path string, params interface{}, response interface{}) (err error)

func (*HTTP) UnsignedRequest

func (h *HTTP) UnsignedRequest(ctx context.Context, method string, path string, params interface{}, response interface{}) (err error)

Jump to

Keyboard shortcuts

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