common

package
v5.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EntityNotFoundErr = VirgilAPIError{
		Message: "Entity was not found",
	}
)

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Do(*http.Request) (*http.Response, error)
}

type VirgilAPIError

type VirgilAPIError struct {
	Code    int
	Message string
}

func (VirgilAPIError) Error

func (err VirgilAPIError) Error() string

type VirgilHttpClient

type VirgilHttpClient struct {
	Client  HttpClient
	Address string
}

func (*VirgilHttpClient) Send

func (vc *VirgilHttpClient) Send(method string, url string, token string, payload interface{}, respObj interface{}) (headers http.Header, code int, err error)

Jump to

Keyboard shortcuts

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