client

package
v0.0.0-...-f05cc18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRetryable = Retryable{
	MaxRetries: 3,
	Timeout:    3 * time.Second,
}
View Source
var (
	ErrMaxRetriesReached = errors.New("max retries reached")
)

Functions

This section is empty.

Types

type OrderCreationPayload

type OrderCreationPayload struct {
	RunID    uuid.UUID
	Type     order.Type
	Exchange string
	Pair     string
	Side     order.Side
	Quantity float64
}

type Retryable

type Retryable struct {
	MaxRetries int
	Timeout    time.Duration
}

func (Retryable) Exec

func (r Retryable) Exec(ctx context.Context, fn func(ctx context.Context) error) error

type ServiceInfo

type ServiceInfo struct {
	APIVersion string `yaml:"api_version"`
	BinVersion string `yaml:"bin_version"`
}

Jump to

Keyboard shortcuts

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