common

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: BSD-3-Clause Imports: 8 Imported by: 8

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