wfclient

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotImplemented is returned when the function is not implemented.
	ErrNotImplemented = errors.New("not implemented")
)

Functions

This section is empty.

Types

type SubscribeToPriceParams added in v1.6.0

type SubscribeToPriceParams struct {
	Context  runtime.Context
	Exchange string
	Pair     string
}

SubscribeToPriceParams is the parameters to subscribe to price updates.

type WfClient

type WfClient interface {
	// SubscribeToPrice subscribes to specific price updates.
	SubscribeToPrice(
		ctx workflow.Context,
		params SubscribeToPriceParams,
	) error

	// ListCandlesticks lists candlesticks from Cryptellation service.
	ListCandlesticks(
		ctx workflow.Context,
		params candlesticksapi.ListCandlesticksWorkflowParams,
		childWorkflowOptions *workflow.ChildWorkflowOptions,
	) (result candlesticksapi.ListCandlesticksWorkflowResults, err error)

	// GetExchange calls the exchange get workflow.
	GetExchange(
		ctx workflow.Context,
		params exchangesapi.GetExchangeWorkflowParams,
		childWorkflowOptions *workflow.ChildWorkflowOptions,
	) (result exchangesapi.GetExchangeWorkflowResults, err error)
}

WfClient is a client for the cryptellation exchanges 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