hook

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log() httpclient.HookFn

func UnmarshalResponse

func UnmarshalResponse(target interface{},
	unmarshaller ...Unmarshaller) httpclient.HookFn

UnmarshalResponse will be unmarshal response body to target

Types

type Unmarshaller

type Unmarshaller interface {
	Unmarshal(data []byte, target interface{}) error
}

func NewJsonUnmarshaller

func NewJsonUnmarshaller() Unmarshaller

func NewXmlUnmarshaller

func NewXmlUnmarshaller() Unmarshaller

Jump to

Keyboard shortcuts

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