call

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResponse

func DecodeResponse(r *resty.Response) ([]byte, error)

func R

func R(ctx context.Context) *resty.Request

func RPC

func RPC() api.Pando

func SetDebug

func SetDebug(debug bool)

func UnmarshalResponse

func UnmarshalResponse(r *resty.Response, v interface{}) error

func WithToken

func WithToken(ctx context.Context, token string) context.Context

Types

type Error

type Error struct {
	Code int64  `json:"code,omitempty"`
	Msg  string `json:"msg,omitempty"`
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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