reqbuilder

package
v0.0.0-...-b0bccf5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpGet

func HttpGet(url string) (string, error)

func HttpPost

func HttpPost(url string, body string) (string, error)

Types

type GetRequest

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

func (*GetRequest) AddParam

func (p *GetRequest) AddParam(property string, value string) *GetRequest

func (*GetRequest) BuildParams

func (p *GetRequest) BuildParams() string

func (*GetRequest) Init

func (p *GetRequest) Init() *GetRequest

func (*GetRequest) InitFrom

func (p *GetRequest) InitFrom(reqParams *GetRequest) *GetRequest

type PrivateUrlBuilder

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

func (*PrivateUrlBuilder) Build

func (p *PrivateUrlBuilder) Build(method string, path string, request *GetRequest) string

func (*PrivateUrlBuilder) BuildWithTime

func (p *PrivateUrlBuilder) BuildWithTime(method string, path string, utcDate time.Time, request *GetRequest) string

func (*PrivateUrlBuilder) Init

func (p *PrivateUrlBuilder) Init(accessKey string, secretKey string, host string) *PrivateUrlBuilder

type PublicUrlBuilder

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

func (*PublicUrlBuilder) Build

func (p *PublicUrlBuilder) Build(path string, request *GetRequest) string

func (*PublicUrlBuilder) Init

func (p *PublicUrlBuilder) Init(host string) *PublicUrlBuilder

type Signer

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

func (*Signer) Init

func (p *Signer) Init(key string) *Signer

func (*Signer) Sign

func (p *Signer) Sign(method string, host string, path string, parameters string) string

Jump to

Keyboard shortcuts

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