retry

package
v0.0.0-...-91881de Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

retry implements request retry logic for the binance api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(err error, do DoFunc) (interface{}, error)

Do will retry do according to recvWindowSchedule.

func ServerTimeSync

func ServerTimeSync() error

ServerTimeSync sets the time offset for each request to the binance server time.

Types

type DoFunc

type DoFunc func(...futures.RequestOption) (interface{}, error)

DoFunc is used to call the binance sdk service's Do method.

Jump to

Keyboard shortcuts

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