adapter

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultAdapter

type DefaultAdapter struct {
	layer.Flow
	*httpClient.HttpClient
}

func (*DefaultAdapter) HttpGet

func (entity *DefaultAdapter) HttpGet(uri string, params map[string]string, header map[string]string) (data []byte, err error)

func (*DefaultAdapter) HttpPost

func (entity *DefaultAdapter) HttpPost(uri string, params map[string]string, header map[string]string) (data []byte, err error)

func (*DefaultAdapter) HttpPostJSON

func (entity *DefaultAdapter) HttpPostJSON(uri string, params map[string]interface{}, header map[string]string) (data []byte, err error)

func (*DefaultAdapter) PostData

func (entity *DefaultAdapter) PostData(uri string, params map[string]interface{}) (data []byte, err error)

func (*DefaultAdapter) PostDataJson

func (entity *DefaultAdapter) PostDataJson(uri string, params map[string]interface{}, header map[string]string) (data []byte, err error)

func (*DefaultAdapter) PostForm

func (entity *DefaultAdapter) PostForm(uri string, params map[string]interface{}, header *map[string]string) ([]byte, error)

func (*DefaultAdapter) PreUse

func (entity *DefaultAdapter) PreUse(args ...interface{})

func (*DefaultAdapter) RalPost

func (entity *DefaultAdapter) RalPost(uri string, params map[string]interface{}, header map[string]string) (*puzzle.DefaultRender, error)

func (*DefaultAdapter) Request

func (entity *DefaultAdapter) Request(method string, uri string, reqBody []byte, header map[string]string, cookies map[string]string, contentType string) (data []byte, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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