Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallAPI ¶
func CallAPI(connRest ConnectorRest, r *Request) (data []byte, err error)
непосредственно вызв того что нам необходимо
func Debug ¶
func Debug(connRest ConnectorRest, format string, v interface{})
вывод в логи все что необходимо для тестов, чтобы не засорять консоль
Types ¶
type ConnectorRest ¶
type Request ¶
type Request struct { Method string Endpoint string Query url.Values Data []byte // json data for NewRequest body in client RecvWindow int // specify how long an HTTP request is valid SecType SecType // security type Header http.Header FullURL string }
Request define an API Request
func NewRequest ¶ added in v0.0.5
надо прописать default
Click to show internal directories.
Click to hide internal directories.