client

package
v0.0.0-...-1ceb281 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonPost

func JsonPost(ctx context.Context, uri string, header map[string]string, req, rsp interface{}) (err error)

JsonPost http json post 请求

Types

type Client

type Client struct {
}
var DefaultClient Client = Client{}

func (Client) Invoke

func (Client) Invoke(ctx context.Context, reqBody interface{}, rspBody interface{}, opt ...Option) (err error)

type Option

type Option struct {
	Host                      string
	Port                      int
	SecretId, SecretKey       string
	TIBusinessId, TIProjectId uint32
	Inside                    bool
	Uin, SubAccountUin        string
}

func (Option) GetEndpoint

func (m Option) GetEndpoint() string

Jump to

Keyboard shortcuts

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