rest

package
v0.0.0-...-7dafa0e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Base   *url.URL
	AppID  string
	AppKey string
	Common Service
	// contains filtered or unexported fields
}

func NewClient

func NewClient(appid, appkey, host string) *Client

func (*Client) Do

func (c *Client) Do(req *http.Request, obj interface{}) error

func (*Client) NewRequest

func (c *Client) NewRequest(method, urlstr string, params map[string]string, body interface{}) (*http.Request, error)

type Service

type Service struct {
	Client *Client
}

Jump to

Keyboard shortcuts

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