clients

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// NewForwardtest creates a new forwardtest.
	NewForwardtest(
		ctx context.Context,
		params api.CreateForwardtestWorkflowParams,
	) (Forwardtest, error)
	// ListForwardtests lists the forwardtests.
	ListForwardtests(
		ctx context.Context,
		params api.ListForwardtestsWorkflowParams,
	) ([]Forwardtest, error)
	// Info calls the service info.
	Info(ctx context.Context) (api.ServiceInfoResults, error)
}

Client is a client for the cryptellation forwardtests service.

func New

New creates a new client to execute temporal workflows.

type Forwardtest

type Forwardtest struct {
	ID uuid.UUID
	// contains filtered or unexported fields
}

Forwardtest is a local representation of a forwardtest running on the Cryptellation API.

func (Forwardtest) CreateOrder

CreateOrder creates an order on the forwardtest.

func (Forwardtest) GetStatus

func (ft Forwardtest) GetStatus(
	ctx context.Context,
) (forwardtest.Status, error)

GetStatus gets the status of the forwardtest.

func (Forwardtest) ListAccounts

func (ft Forwardtest) ListAccounts(
	ctx context.Context,
) (map[string]account.Account, error)

ListAccounts lists the accounts of the forwardtest.

type RawClient

RawClient is a client for the cryptellation backtests service with just the calls to the temporal workflows.

func NewRaw

func NewRaw(cl temporalclient.Client) RawClient

NewRaw creates a new raw client to execute temporal workflows.

type WfClient

type WfClient interface {
}

WfClient is a client for the cryptellation forwardtests service from a workflow perspective.

func NewWfClient

func NewWfClient() WfClient

NewWfClient creates a new workflow client. This client is used to call workflows from within other workflows. It is not used to call workflows from outside the workflow environment.

Jump to

Keyboard shortcuts

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