xhttp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignClient

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

func NewSignClient

func NewSignClient(cfg *SignConfig) *SignClient

func (*SignClient) Get

func (c *SignClient) Get(url string, params url.Values, headers map[string]string, res interface{}) error

Get response header Content-Type application/json

func (*SignClient) Post

func (c *SignClient) Post(url string, body []byte, headers map[string]string, res interface{}) error

Post Content-Type application/json

type SignConfig

type SignConfig struct {
	Method    sign.Method
	Header    string
	AccessKey string
	SecretKey string
}

func (SignConfig) Validate

func (cfg SignConfig) Validate() error

Jump to

Keyboard shortcuts

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