Documentation
¶
Index ¶
- Variables
- type Transfer
- func (w *Transfer) BeginWhenTransferStarted(m *messages.TransferStarted, exec ax.CommandExecutor)
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetAmountInCents() int32
- func (x *Transfer) GetFromAccountId() string
- func (x *Transfer) GetIsComplete() bool
- func (x *Transfer) GetToAccountId() string
- func (x *Transfer) GetTransferId() string
- func (w *Transfer) InstanceDescription() string
- func (w *Transfer) IsInstanceComplete() bool
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
- func (w *Transfer) WhenAccountCredited(m *messages.AccountCredited, mctx ax.MessageContext, exec ax.CommandExecutor)
- func (w *Transfer) WhenAccountDebited(m *messages.AccountDebited, exec ax.CommandExecutor)
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) GetAmountInCents ¶
func (*Transfer) GetFromAccountId ¶
func (*Transfer) GetIsComplete ¶
func (*Transfer) GetToAccountId ¶
func (*Transfer) GetTransferId ¶
func (*Transfer) InstanceDescription ¶
InstanceDescription returns a human-readable description of the aggregate instance.
func (*Transfer) IsInstanceComplete ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.