messages

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AccountCredited) Descriptor

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

func (*AccountCredited) GetAccountId

func (m *AccountCredited) GetAccountId() string

func (*AccountCredited) GetAmountInCents

func (m *AccountCredited) GetAmountInCents() int32

func (*AccountCredited) GetTransferId

func (m *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) Reset

func (m *AccountCredited) Reset()

func (*AccountCredited) String

func (m *AccountCredited) String() string

func (*AccountCredited) XXX_DiscardUnknown

func (m *AccountCredited) XXX_DiscardUnknown()

func (*AccountCredited) XXX_Marshal

func (m *AccountCredited) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountCredited) XXX_Merge

func (m *AccountCredited) XXX_Merge(src proto.Message)

func (*AccountCredited) XXX_Size

func (m *AccountCredited) XXX_Size() int

func (*AccountCredited) XXX_Unmarshal

func (m *AccountCredited) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AccountDebited) Descriptor

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

func (*AccountDebited) GetAccountId

func (m *AccountDebited) GetAccountId() string

func (*AccountDebited) GetAmountInCents

func (m *AccountDebited) GetAmountInCents() int32

func (*AccountDebited) GetTransferId

func (m *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) Reset

func (m *AccountDebited) Reset()

func (*AccountDebited) String

func (m *AccountDebited) String() string

func (*AccountDebited) XXX_DiscardUnknown

func (m *AccountDebited) XXX_DiscardUnknown()

func (*AccountDebited) XXX_Marshal

func (m *AccountDebited) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountDebited) XXX_Merge

func (m *AccountDebited) XXX_Merge(src proto.Message)

func (*AccountDebited) XXX_Size

func (m *AccountDebited) XXX_Size() int

func (*AccountDebited) XXX_Unmarshal

func (m *AccountDebited) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*AccountOpened) Descriptor

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

func (*AccountOpened) GetAccountId

func (m *AccountOpened) GetAccountId() string

func (*AccountOpened) GetName

func (m *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) Reset

func (m *AccountOpened) Reset()

func (*AccountOpened) String

func (m *AccountOpened) String() string

func (*AccountOpened) XXX_DiscardUnknown

func (m *AccountOpened) XXX_DiscardUnknown()

func (*AccountOpened) XXX_Marshal

func (m *AccountOpened) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountOpened) XXX_Merge

func (m *AccountOpened) XXX_Merge(src proto.Message)

func (*AccountOpened) XXX_Size

func (m *AccountOpened) XXX_Size() int

func (*AccountOpened) XXX_Unmarshal

func (m *AccountOpened) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CreditAccount is a command that credits funds to an account.

func (*CreditAccount) Descriptor

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

func (*CreditAccount) GetAccountId

func (m *CreditAccount) GetAccountId() string

func (*CreditAccount) GetAmountInCents

func (m *CreditAccount) GetAmountInCents() int32

func (*CreditAccount) GetTransferId

func (m *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) Reset

func (m *CreditAccount) Reset()

func (*CreditAccount) String

func (m *CreditAccount) String() string

func (*CreditAccount) XXX_DiscardUnknown

func (m *CreditAccount) XXX_DiscardUnknown()

func (*CreditAccount) XXX_Marshal

func (m *CreditAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreditAccount) XXX_Merge

func (m *CreditAccount) XXX_Merge(src proto.Message)

func (*CreditAccount) XXX_Size

func (m *CreditAccount) XXX_Size() int

func (*CreditAccount) XXX_Unmarshal

func (m *CreditAccount) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DebitAccount is a command that debits funds from an account.

func (*DebitAccount) Descriptor

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

func (*DebitAccount) GetAccountId

func (m *DebitAccount) GetAccountId() string

func (*DebitAccount) GetAmountInCents

func (m *DebitAccount) GetAmountInCents() int32

func (*DebitAccount) GetTransferId

func (m *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) Reset

func (m *DebitAccount) Reset()

func (*DebitAccount) String

func (m *DebitAccount) String() string

func (*DebitAccount) XXX_DiscardUnknown

func (m *DebitAccount) XXX_DiscardUnknown()

func (*DebitAccount) XXX_Marshal

func (m *DebitAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebitAccount) XXX_Merge

func (m *DebitAccount) XXX_Merge(src proto.Message)

func (*DebitAccount) XXX_Size

func (m *DebitAccount) XXX_Size() int

func (*DebitAccount) XXX_Unmarshal

func (m *DebitAccount) XXX_Unmarshal(b []byte) error

type MarkTransferComplete

type MarkTransferComplete struct {
	TransferId           string   `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MarkTransferComplete is a command that marks a transfer as completed.

func (*MarkTransferComplete) Descriptor

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

func (*MarkTransferComplete) GetTransferId

func (m *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) Reset

func (m *MarkTransferComplete) Reset()

func (*MarkTransferComplete) String

func (m *MarkTransferComplete) String() string

func (*MarkTransferComplete) XXX_DiscardUnknown

func (m *MarkTransferComplete) XXX_DiscardUnknown()

func (*MarkTransferComplete) XXX_Marshal

func (m *MarkTransferComplete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MarkTransferComplete) XXX_Merge

func (m *MarkTransferComplete) XXX_Merge(src proto.Message)

func (*MarkTransferComplete) XXX_Size

func (m *MarkTransferComplete) XXX_Size() int

func (*MarkTransferComplete) XXX_Unmarshal

func (m *MarkTransferComplete) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

OpenAccount is a command that opens a new bank account.

func (*OpenAccount) Descriptor

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

func (*OpenAccount) GetAccountId

func (m *OpenAccount) GetAccountId() string

func (*OpenAccount) GetName

func (m *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) Reset

func (m *OpenAccount) Reset()

func (*OpenAccount) String

func (m *OpenAccount) String() string

func (*OpenAccount) XXX_DiscardUnknown

func (m *OpenAccount) XXX_DiscardUnknown()

func (*OpenAccount) XXX_Marshal

func (m *OpenAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OpenAccount) XXX_Merge

func (m *OpenAccount) XXX_Merge(src proto.Message)

func (*OpenAccount) XXX_Size

func (m *OpenAccount) XXX_Size() int

func (*OpenAccount) XXX_Unmarshal

func (m *OpenAccount) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StartTransfer is a command that starts a new funds transfer.

func (*StartTransfer) Descriptor

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

func (*StartTransfer) GetAmountInCents

func (m *StartTransfer) GetAmountInCents() int32

func (*StartTransfer) GetFromAccountId

func (m *StartTransfer) GetFromAccountId() string

func (*StartTransfer) GetToAccountId

func (m *StartTransfer) GetToAccountId() string

func (*StartTransfer) GetTransferId

func (m *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) Reset

func (m *StartTransfer) Reset()

func (*StartTransfer) String

func (m *StartTransfer) String() string

func (*StartTransfer) XXX_DiscardUnknown

func (m *StartTransfer) XXX_DiscardUnknown()

func (*StartTransfer) XXX_Marshal

func (m *StartTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartTransfer) XXX_Merge

func (m *StartTransfer) XXX_Merge(src proto.Message)

func (*StartTransfer) XXX_Size

func (m *StartTransfer) XXX_Size() int

func (*StartTransfer) XXX_Unmarshal

func (m *StartTransfer) XXX_Unmarshal(b []byte) error

type TransferCompleted

type TransferCompleted struct {
	TransferId           string   `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*TransferCompleted) Descriptor

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

func (*TransferCompleted) GetTransferId

func (m *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) Reset

func (m *TransferCompleted) Reset()

func (*TransferCompleted) String

func (m *TransferCompleted) String() string

func (*TransferCompleted) XXX_DiscardUnknown

func (m *TransferCompleted) XXX_DiscardUnknown()

func (*TransferCompleted) XXX_Marshal

func (m *TransferCompleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferCompleted) XXX_Merge

func (m *TransferCompleted) XXX_Merge(src proto.Message)

func (*TransferCompleted) XXX_Size

func (m *TransferCompleted) XXX_Size() int

func (*TransferCompleted) XXX_Unmarshal

func (m *TransferCompleted) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*TransferStarted) Descriptor

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

func (*TransferStarted) GetAmountInCents

func (m *TransferStarted) GetAmountInCents() int32

func (*TransferStarted) GetFromAccountId

func (m *TransferStarted) GetFromAccountId() string

func (*TransferStarted) GetToAccountId

func (m *TransferStarted) GetToAccountId() string

func (*TransferStarted) GetTransferId

func (m *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) Reset

func (m *TransferStarted) Reset()

func (*TransferStarted) String

func (m *TransferStarted) String() string

func (*TransferStarted) XXX_DiscardUnknown

func (m *TransferStarted) XXX_DiscardUnknown()

func (*TransferStarted) XXX_Marshal

func (m *TransferStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferStarted) XXX_Merge

func (m *TransferStarted) XXX_Merge(src proto.Message)

func (*TransferStarted) XXX_Size

func (m *TransferStarted) XXX_Size() int

func (*TransferStarted) XXX_Unmarshal

func (m *TransferStarted) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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