Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient interface {
	Do(request *RestClientRequest, res interface{}) error
}

RestClient user can implement this client interface to send request

type RestClientRequest

type RestClientRequest struct {
	Header      http.Header
	Location    string
	Path        string
	Method      string
	PathParams  map[string]string
	QueryParams map[string]string
	Body        interface{}
}

RestClientRequest

type RestOptions

type RestOptions struct {
	RequestTimeout time.Duration
	ConnectTimeout time.Duration
}

RestOptions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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