workflows

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_jmalloc_ax_examples_banking_workflows_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Transfer

type Transfer struct {
	TransferId    string `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	FromAccountId string `protobuf:"bytes,2,opt,name=from_account_id,json=fromAccountId,proto3" json:"from_account_id,omitempty"`
	ToAccountId   string `protobuf:"bytes,3,opt,name=to_account_id,json=toAccountId,proto3" json:"to_account_id,omitempty"`
	AmountInCents int32  `protobuf:"varint,4,opt,name=amount_in_cents,json=amountInCents,proto3" json:"amount_in_cents,omitempty"`
	IsComplete    bool   `protobuf:"varint,5,opt,name=is_complete,json=isComplete,proto3" json:"is_complete,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) BeginWhenTransferStarted

func (w *Transfer) BeginWhenTransferStarted(m *messages.TransferStarted, exec ax.CommandExecutor)

BeginWhenTransferStarted responds to m.

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmountInCents

func (x *Transfer) GetAmountInCents() int32

func (*Transfer) GetFromAccountId

func (x *Transfer) GetFromAccountId() string

func (*Transfer) GetIsComplete

func (x *Transfer) GetIsComplete() bool

func (*Transfer) GetToAccountId

func (x *Transfer) GetToAccountId() string

func (*Transfer) GetTransferId

func (x *Transfer) GetTransferId() string

func (*Transfer) InstanceDescription

func (w *Transfer) InstanceDescription() string

InstanceDescription returns a human-readable description of the aggregate instance.

func (*Transfer) IsInstanceComplete

func (w *Transfer) IsInstanceComplete() bool

IsInstanceComplete returns true if the transfer has completed processing.

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect added in v0.4.2

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

func (*Transfer) WhenAccountCredited

func (w *Transfer) WhenAccountCredited(m *messages.AccountCredited, mctx ax.MessageContext, exec ax.CommandExecutor)

WhenAccountCredited responds to m.

func (*Transfer) WhenAccountDebited

func (w *Transfer) WhenAccountDebited(m *messages.AccountDebited, exec ax.CommandExecutor)

WhenAccountDebited responds to m.

Jump to

Keyboard shortcuts

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