signal

package
v0.0.0-...-7650a3f Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RejectActivity

func RejectActivity(ctx context.Context, request *Order) error

func WithdrawWorkflow

func WithdrawWorkflow(ctx workflow.Context, request CreateWithdrawOrderRequest) error

Types

type CreateWithdrawOrderRequest

type CreateWithdrawOrderRequest struct {
	Amount int
}

type MySignal

type MySignal struct {
	State int
}

type Order

type Order struct {
	OrderID       string
	TXHash        string
	CallbackCount int
}

type WithdrawOrder

type WithdrawOrder struct {
	OrderID string
	Amount  int
	State   int
}

func ApproveActivity

func ApproveActivity(ctx context.Context, request *Order) (*WithdrawOrder, error)

func CreateWithdrawOrderActivity

func CreateWithdrawOrderActivity(ctx context.Context, request CreateWithdrawOrderRequest) (*WithdrawOrder, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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