resty_base

package
v1.0.0-beta.rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoutingGroupHeader = "X-Route-Group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Resty

type Resty struct {
	*resty.Client
	PrintReq  bool
	PrintResp bool
}

func GetBaseRestyClient

func GetBaseRestyClient(baseURL, bearer string) Resty

func (*Resty) PrintReqJson

func (r *Resty) PrintReqJson(payload interface{})

func (*Resty) PrintRespJson

func (r *Resty) PrintRespJson(body []byte)

func (*Resty) SetRoutingGroupHeader

func (r *Resty) SetRoutingGroupHeader(group string)

Jump to

Keyboard shortcuts

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