transport

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.NewHttpError(http.StatusNotFound, "not found")

Functions

func ErrByTransportCode

func ErrByTransportCode(transportCode int, message string) error

func GetErrByCode

func GetErrByCode(transportCode, serviceCode int) error

GetErrByCode function return error with description by code response

Types

type Client

type Client interface {
	SetToken(token string)
	Call(endpoint endpoints.Endpoint, payload interface{}, returnObj interface{}, params ...interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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