transport

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BybitError

type BybitError struct {
	RetCode int    `json:"ret_code"`
	RetMsg  string `json:"ret_msg"`
	Result  string `json:"result"`
	Token   string `json:"token"`
}

type Error

type Error struct {
	HTTPCode int    `json:"httpCode"`
	ErrorMsg string `json:"errorMsg"`
}

func (*Error) Error

func (e *Error) Error() string

type Transporter

type Transporter interface {
	SignedPostForm(path string, params url.Values, response interface{}) error
	SignedRequest(ctx context.Context, method string, path string, params interface{}, response interface{}) error
	UnsignedRequest(ctx context.Context, method string, path string, params interface{}, response interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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