rest

package
v0.0.0-...-987ecbf Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conflict = errors.New("resource conflict")
View Source
var NotFound = errors.New("resource not found")

Functions

func JSON

func JSON() map[string]string

Types

type Client

type Client struct {
	Http        http.Client
	BaseUrl     string
	Token       string
	LogRequest  bool
	LogResponse bool
}

func (*Client) Do

func (k *Client) Do(method string, path string, headers map[string]string, request interface{}, result interface{}) error

func (*Client) DoRaw

func (k *Client) DoRaw(method string, path string, headers map[string]string, requestBody []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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