rpc

package
v0.0.0-...-de1ad02 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 17 Imported by: 69

Documentation

Index

Constants

View Source
const (
	MethodGet  = "GET"
	MethodPut  = "PUT"
	MethodPost = "POST"
)

Variables

This section is empty.

Functions

func ApiGetJson

func ApiGetJson(url string, reply interface{}) error

func ApiPostJson

func ApiPostJson(url string, args interface{}) error

func ApiPutJson

func ApiPutJson(url string, args, reply interface{}) error

func ApiResponseError

func ApiResponseError(err error) (int, string)

func ApiResponseJson

func ApiResponseJson(v interface{}) (int, string)

func EncodeURL

func EncodeURL(host string, format string, args ...interface{}) string

func NewToken

func NewToken(segs ...string) string

func NewXAuth

func NewXAuth(segs ...string) string

Types

type RemoteError

type RemoteError struct {
	Cause string
	Stack trace.Stack
}

func NewRemoteError

func NewRemoteError(err error) *RemoteError

func (*RemoteError) Error

func (e *RemoteError) Error() string

func (*RemoteError) TracedError

func (e *RemoteError) TracedError() error

Jump to

Keyboard shortcuts

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