client

package
v1.4.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 1 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 *RestRequest, res interface{}) error
}

type RestOptions

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

type RestRequest

type RestRequest struct {
	Location    string
	Path        string
	Produces    string
	Consumes    string
	Method      string
	PathParams  map[string]string
	QueryParams map[string]string
	Body        interface{}
	Headers     map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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