messages

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_jmalloc_ax_examples_banking_messages_account_proto protoreflect.FileDescriptor
View Source
var File_github_com_jmalloc_ax_examples_banking_messages_transfer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountCredited

type AccountCredited struct {
	AccountId     string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AmountInCents int32  `protobuf:"varint,2,opt,name=amount_in_cents,json=amountInCents,proto3" json:"amount_in_cents,omitempty"`
	TransferId    string `protobuf:"bytes,3,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

AccountCredited is an event that occurs when funds are credited to an account.

func (*AccountCredited) Descriptor deprecated

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

Deprecated: Use AccountCredited.ProtoReflect.Descriptor instead.

func (*AccountCredited) GetAccountId

func (x *AccountCredited) GetAccountId() string

func (*AccountCredited) GetAmountInCents

func (x *AccountCredited) GetAmountInCents() int32

func (*AccountCredited) GetTransferId

func (x *AccountCredited) GetTransferId() string

func (*AccountCredited) IsEvent

func (*AccountCredited) IsEvent()

IsEvent marks the message as an event.

func (*AccountCredited) MessageDescription

func (m *AccountCredited) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*AccountCredited) ProtoMessage

func (*AccountCredited) ProtoMessage()

func (*AccountCredited) ProtoReflect added in v0.4.2

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

func (*AccountCredited) Reset

func (x *AccountCredited) Reset()

func (*AccountCredited) String

func (x *AccountCredited) String() string

type AccountDebited

type AccountDebited struct {
	AccountId     string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AmountInCents int32  `protobuf:"varint,2,opt,name=amount_in_cents,json=amountInCents,proto3" json:"amount_in_cents,omitempty"`
	TransferId    string `protobuf:"bytes,3,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

AccountDebited is an event that occurs when funds are debited from an account.

func (*AccountDebited) Descriptor deprecated

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

Deprecated: Use AccountDebited.ProtoReflect.Descriptor instead.

func (*AccountDebited) GetAccountId

func (x *AccountDebited) GetAccountId() string

func (*AccountDebited) GetAmountInCents

func (x *AccountDebited) GetAmountInCents() int32

func (*AccountDebited) GetTransferId

func (x *AccountDebited) GetTransferId() string

func (*AccountDebited) IsEvent

func (*AccountDebited) IsEvent()

IsEvent marks the message as an event.

func (*AccountDebited) MessageDescription

func (m *AccountDebited) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*AccountDebited) ProtoMessage

func (*AccountDebited) ProtoMessage()

func (*AccountDebited) ProtoReflect added in v0.4.2

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

func (*AccountDebited) Reset

func (x *AccountDebited) Reset()

func (*AccountDebited) String

func (x *AccountDebited) String() string

type AccountOpened

type AccountOpened struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

AccountOpened is an event that occurs when a new account is opened.

func (*AccountOpened) Descriptor deprecated

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

Deprecated: Use AccountOpened.ProtoReflect.Descriptor instead.

func (*AccountOpened) GetAccountId

func (x *AccountOpened) GetAccountId() string

func (*AccountOpened) GetName

func (x *AccountOpened) GetName() string

func (*AccountOpened) IsEvent

func (*AccountOpened) IsEvent()

IsEvent marks the message as an event.

func (*AccountOpened) MessageDescription

func (m *AccountOpened) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*AccountOpened) ProtoMessage

func (*AccountOpened) ProtoMessage()

func (*AccountOpened) ProtoReflect added in v0.4.2

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

func (*AccountOpened) Reset

func (x *AccountOpened) Reset()

func (*AccountOpened) String

func (x *AccountOpened) String() string

type CreditAccount

type CreditAccount struct {
	AccountId     string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AmountInCents int32  `protobuf:"varint,2,opt,name=amount_in_cents,json=amountInCents,proto3" json:"amount_in_cents,omitempty"`
	TransferId    string `protobuf:"bytes,3,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

CreditAccount is a command that credits funds to an account.

func (*CreditAccount) Descriptor deprecated

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

Deprecated: Use CreditAccount.ProtoReflect.Descriptor instead.

func (*CreditAccount) GetAccountId

func (x *CreditAccount) GetAccountId() string

func (*CreditAccount) GetAmountInCents

func (x *CreditAccount) GetAmountInCents() int32

func (*CreditAccount) GetTransferId

func (x *CreditAccount) GetTransferId() string

func (*CreditAccount) IsCommand

func (*CreditAccount) IsCommand()

IsCommand marks the message as a command.

func (*CreditAccount) MessageDescription

func (m *CreditAccount) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*CreditAccount) ProtoMessage

func (*CreditAccount) ProtoMessage()

func (*CreditAccount) ProtoReflect added in v0.4.2

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

func (*CreditAccount) Reset

func (x *CreditAccount) Reset()

func (*CreditAccount) String

func (x *CreditAccount) String() string

type DebitAccount

type DebitAccount struct {
	AccountId     string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AmountInCents int32  `protobuf:"varint,2,opt,name=amount_in_cents,json=amountInCents,proto3" json:"amount_in_cents,omitempty"`
	TransferId    string `protobuf:"bytes,3,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

DebitAccount is a command that debits funds from an account.

func (*DebitAccount) Descriptor deprecated

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

Deprecated: Use DebitAccount.ProtoReflect.Descriptor instead.

func (*DebitAccount) GetAccountId

func (x *DebitAccount) GetAccountId() string

func (*DebitAccount) GetAmountInCents

func (x *DebitAccount) GetAmountInCents() int32

func (*DebitAccount) GetTransferId

func (x *DebitAccount) GetTransferId() string

func (*DebitAccount) IsCommand

func (*DebitAccount) IsCommand()

IsCommand marks the message as a command.

func (*DebitAccount) MessageDescription

func (m *DebitAccount) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*DebitAccount) ProtoMessage

func (*DebitAccount) ProtoMessage()

func (*DebitAccount) ProtoReflect added in v0.4.2

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

func (*DebitAccount) Reset

func (x *DebitAccount) Reset()

func (*DebitAccount) String

func (x *DebitAccount) String() string

type MarkTransferComplete

type MarkTransferComplete struct {
	TransferId string `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

MarkTransferComplete is a command that marks a transfer as completed.

func (*MarkTransferComplete) Descriptor deprecated

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

Deprecated: Use MarkTransferComplete.ProtoReflect.Descriptor instead.

func (*MarkTransferComplete) GetTransferId

func (x *MarkTransferComplete) GetTransferId() string

func (*MarkTransferComplete) IsCommand

func (*MarkTransferComplete) IsCommand()

IsCommand marks the message as a command.

func (*MarkTransferComplete) MessageDescription

func (m *MarkTransferComplete) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*MarkTransferComplete) ProtoMessage

func (*MarkTransferComplete) ProtoMessage()

func (*MarkTransferComplete) ProtoReflect added in v0.4.2

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

func (*MarkTransferComplete) Reset

func (x *MarkTransferComplete) Reset()

func (*MarkTransferComplete) String

func (x *MarkTransferComplete) String() string

type OpenAccount

type OpenAccount struct {
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

OpenAccount is a command that opens a new bank account.

func (*OpenAccount) Descriptor deprecated

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

Deprecated: Use OpenAccount.ProtoReflect.Descriptor instead.

func (*OpenAccount) GetAccountId

func (x *OpenAccount) GetAccountId() string

func (*OpenAccount) GetName

func (x *OpenAccount) GetName() string

func (*OpenAccount) IsCommand

func (*OpenAccount) IsCommand()

IsCommand marks the message as a command.

func (*OpenAccount) MessageDescription

func (m *OpenAccount) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*OpenAccount) ProtoMessage

func (*OpenAccount) ProtoMessage()

func (*OpenAccount) ProtoReflect added in v0.4.2

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

func (*OpenAccount) Reset

func (x *OpenAccount) Reset()

func (*OpenAccount) String

func (x *OpenAccount) String() string

type StartTransfer

type StartTransfer 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"`
	// contains filtered or unexported fields
}

StartTransfer is a command that starts a new funds transfer.

func (*StartTransfer) Descriptor deprecated

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

Deprecated: Use StartTransfer.ProtoReflect.Descriptor instead.

func (*StartTransfer) GetAmountInCents

func (x *StartTransfer) GetAmountInCents() int32

func (*StartTransfer) GetFromAccountId

func (x *StartTransfer) GetFromAccountId() string

func (*StartTransfer) GetToAccountId

func (x *StartTransfer) GetToAccountId() string

func (*StartTransfer) GetTransferId

func (x *StartTransfer) GetTransferId() string

func (*StartTransfer) IsCommand

func (*StartTransfer) IsCommand()

IsCommand marks the message as a command.

func (*StartTransfer) MessageDescription

func (m *StartTransfer) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*StartTransfer) ProtoMessage

func (*StartTransfer) ProtoMessage()

func (*StartTransfer) ProtoReflect added in v0.4.2

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

func (*StartTransfer) Reset

func (x *StartTransfer) Reset()

func (*StartTransfer) String

func (x *StartTransfer) String() string

type TransferCompleted

type TransferCompleted struct {
	TransferId string `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

TransferCompleted is an event that occurs when a funds transfer is completed.

func (*TransferCompleted) Descriptor deprecated

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

Deprecated: Use TransferCompleted.ProtoReflect.Descriptor instead.

func (*TransferCompleted) GetTransferId

func (x *TransferCompleted) GetTransferId() string

func (*TransferCompleted) IsEvent

func (*TransferCompleted) IsEvent()

IsEvent marks the message as an event.

func (*TransferCompleted) MessageDescription

func (m *TransferCompleted) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*TransferCompleted) ProtoMessage

func (*TransferCompleted) ProtoMessage()

func (*TransferCompleted) ProtoReflect added in v0.4.2

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

func (*TransferCompleted) Reset

func (x *TransferCompleted) Reset()

func (*TransferCompleted) String

func (x *TransferCompleted) String() string

type TransferStarted

type TransferStarted 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"`
	// contains filtered or unexported fields
}

TransferStarted is an event that occurs when a funds transfer is started.

func (*TransferStarted) Descriptor deprecated

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

Deprecated: Use TransferStarted.ProtoReflect.Descriptor instead.

func (*TransferStarted) GetAmountInCents

func (x *TransferStarted) GetAmountInCents() int32

func (*TransferStarted) GetFromAccountId

func (x *TransferStarted) GetFromAccountId() string

func (*TransferStarted) GetToAccountId

func (x *TransferStarted) GetToAccountId() string

func (*TransferStarted) GetTransferId

func (x *TransferStarted) GetTransferId() string

func (*TransferStarted) IsEvent

func (*TransferStarted) IsEvent()

IsEvent marks the message as an event.

func (*TransferStarted) MessageDescription

func (m *TransferStarted) MessageDescription() string

MessageDescription returns a human-readable description of the message.

func (*TransferStarted) ProtoMessage

func (*TransferStarted) ProtoMessage()

func (*TransferStarted) ProtoReflect added in v0.4.2

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

func (*TransferStarted) Reset

func (x *TransferStarted) Reset()

func (*TransferStarted) String

func (x *TransferStarted) String() string

Jump to

Keyboard shortcuts

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