httpcli

package
v0.0.0-...-db7d511 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httpcli contains http-based transports

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient(uri string, user, pass, pem []byte) *RestClient

func (*RestClient) Execute

func (rc *RestClient) Execute(method, path string, payload map[string]string) (json.RawMessage, error)

func (*RestClient) GetSession

func (rc *RestClient) GetSession() (*swagger.Login, error)

type RestError

type RestError struct {
	Code    string `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

func (RestError) Error

func (re RestError) Error() string

Jump to

Keyboard shortcuts

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