Versions in this module Expand all Collapse all v0 v0.0.0 Feb 27, 2020 Changes in this version + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowWallet = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthWallet = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupWallet = fmt.Errorf("proto: unexpected end of group") + type App interface + ComputeAndFetch func(context.Context, Filter) ([]W, error) + type Filter struct + EndDate time.Time + ID ulid.ID + LastBeforeDate time.Time + StartDate time.Time + type Store interface + Fetch func(context.Context, Filter) (W, error) + Insert func(context.Context, W) error + Remove func(context.Context, Filter) error + type Tx struct + ID github_com_elojah_wallet_pkg_ulid.ID + Sum string + WalletID github_com_elojah_wallet_pkg_ulid.ID + func NewPopulatedTx(r randyTx, easy bool) *Tx + func (*Tx) Descriptor() ([]byte, []int) + func (*Tx) ProtoMessage() + func (m *Tx) GetSum() string + func (m *Tx) Marshal() (dAtA []byte, err error) + func (m *Tx) MarshalTo(dAtA []byte) (int, error) + func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Tx) Reset() + func (m *Tx) Size() (n int) + func (m *Tx) Unmarshal(dAtA []byte) error + func (m *Tx) XXX_DiscardUnknown() + func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Tx) XXX_Merge(src proto.Message) + func (m *Tx) XXX_Size() int + func (m *Tx) XXX_Unmarshal(b []byte) error + func (this *Tx) Equal(that interface{}) bool + func (this *Tx) GoString() string + func (this *Tx) String() string + type TxApp interface + CreateTx func(context.Context, Tx) error + type TxFilter struct + EndDate time.Time + StartDate time.Time + WalletID ulid.ID + type TxStore interface + FetchManyTx func(context.Context, TxFilter) ([]Tx, error) + InsertTx func(context.Context, Tx) error + type W struct + Amount string + ID github_com_elojah_wallet_pkg_ulid.ID + Timestamp int64 + func GenerateHourRange(start time.Time, end time.Time) []W + func NewPopulatedW(r randyWallet, easy bool) *W + func (*W) Descriptor() ([]byte, []int) + func (*W) ProtoMessage() + func (m *W) GetAmount() string + func (m *W) GetTimestamp() int64 + func (m *W) Marshal() (dAtA []byte, err error) + func (m *W) MarshalTo(dAtA []byte) (int, error) + func (m *W) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *W) Reset() + func (m *W) Size() (n int) + func (m *W) Unmarshal(dAtA []byte) error + func (m *W) XXX_DiscardUnknown() + func (m *W) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *W) XXX_Merge(src proto.Message) + func (m *W) XXX_Size() int + func (m *W) XXX_Unmarshal(b []byte) error + func (this *W) Equal(that interface{}) bool + func (this *W) GoString() string + func (this *W) String() string