client

package
v0.0.0-...-3bb77e7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	BasicAuthentication(token string) string
	BearerAuthentication(token string) string
	NewHeaders(h map[string]string) map[string]string
	Get(url string, headers, queryParams map[string]string, i interface{}, breakerName string) (*resty.Response, error)
	Post(url string, headers, pathParams map[string]string, body interface{}, i interface{}, breakerName string) (*resty.Response, error)
	Put(url string, headers, pathParams map[string]string, body interface{}, i interface{}, breakerName string) (*resty.Response, error)
	Patch(url string, headers, pathParams map[string]string, body interface{}, i interface{}, breakerName string) (*resty.Response, error)
	Delete(url string, headers, pathParams map[string]string, body interface{}, i interface{}, breakerName string) (*resty.Response, error)
}

Client client interface

func New

func New() Client

New new client

Jump to

Keyboard shortcuts

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