Documentation
¶
Index ¶
- Variables
- func BudAccount(account *Account) bud.Account
- func BudCategory(category *Category) bud.Category
- func BudPlannedTransaction(plannedTransaction *PlannedTransaction) bud.PlannedTransaction
- func BudTransaction(transaction *Transaction) bud.Transaction
- func BudTransformation(transformation *Transformation) bud.Transformation
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetBalance() int64
- func (m *Account) GetName() string
- func (m *Account) GetUUID() string
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type Category
- func (*Category) Descriptor() ([]byte, []int)
- func (m *Category) GetName() string
- func (m *Category) GetUUID() string
- func (m *Category) Marshal() (dAtA []byte, err error)
- func (m *Category) MarshalTo(dAtA []byte) (int, error)
- func (*Category) ProtoMessage()
- func (m *Category) Reset()
- func (m *Category) Size() (n int)
- func (m *Category) String() string
- func (m *Category) Unmarshal(dAtA []byte) error
- func (m *Category) XXX_DiscardUnknown()
- func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Category) XXX_Merge(src proto.Message)
- func (m *Category) XXX_Size() int
- func (m *Category) XXX_Unmarshal(b []byte) error
- type PlannedTransaction
- func (*PlannedTransaction) Descriptor() ([]byte, []int)
- func (m *PlannedTransaction) GetAccountUUID() string
- func (m *PlannedTransaction) GetAmount() int64
- func (m *PlannedTransaction) GetCategoryUUID() string
- func (m *PlannedTransaction) GetDescription() string
- func (m *PlannedTransaction) GetRecurrence() string
- func (m *PlannedTransaction) GetUUID() string
- func (m *PlannedTransaction) Marshal() (dAtA []byte, err error)
- func (m *PlannedTransaction) MarshalTo(dAtA []byte) (int, error)
- func (*PlannedTransaction) ProtoMessage()
- func (m *PlannedTransaction) Reset()
- func (m *PlannedTransaction) Size() (n int)
- func (m *PlannedTransaction) String() string
- func (m *PlannedTransaction) Unmarshal(dAtA []byte) error
- func (m *PlannedTransaction) XXX_DiscardUnknown()
- func (m *PlannedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlannedTransaction) XXX_Merge(src proto.Message)
- func (m *PlannedTransaction) XXX_Size() int
- func (m *PlannedTransaction) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetAccountUUID() string
- func (m *Transaction) GetAmount() int64
- func (m *Transaction) GetCategoryUUID() string
- func (m *Transaction) GetDescription() string
- func (m *Transaction) GetPlannedTransactionUUID() string
- func (m *Transaction) GetTransactedAt() *timestamp.Timestamp
- func (m *Transaction) GetTransformationUUID() string
- func (m *Transaction) GetUUID() string
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type Transformation
- func (*Transformation) Descriptor() ([]byte, []int)
- func (m *Transformation) GetCategoryUUID() string
- func (m *Transformation) GetDescription() string
- func (m *Transformation) GetDescriptionFormat() string
- func (m *Transformation) GetPattern() string
- func (m *Transformation) GetPlannedTransactionUUID() string
- func (m *Transformation) GetUUID() string
- func (m *Transformation) Marshal() (dAtA []byte, err error)
- func (m *Transformation) MarshalTo(dAtA []byte) (int, error)
- func (*Transformation) ProtoMessage()
- func (m *Transformation) Reset()
- func (m *Transformation) Size() (n int)
- func (m *Transformation) String() string
- func (m *Transformation) Unmarshal(dAtA []byte) error
- func (m *Transformation) XXX_DiscardUnknown()
- func (m *Transformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transformation) XXX_Merge(src proto.Message)
- func (m *Transformation) XXX_Size() int
- func (m *Transformation) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBud = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBud = fmt.Errorf("proto: integer overflow") )
Functions ¶
func BudAccount ¶
BudAccount converts a proto Account to bud.Account.
func BudCategory ¶
BudCategory converts a proto Category to bud.Category.
func BudPlannedTransaction ¶
func BudPlannedTransaction(plannedTransaction *PlannedTransaction) bud.PlannedTransaction
BudPlannedTransaction converts a proto PlannedTransaction to bud.PlannedTransaction.
func BudTransaction ¶
func BudTransaction(transaction *Transaction) bud.Transaction
BudTransaction converts a proto Transaction to bud.Transaction.
func BudTransformation ¶
func BudTransformation(transformation *Transformation) bud.Transformation
BudTransformation converts a proto Transformation to bud.Transformation.
Types ¶
type Account ¶
type Account struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ProtoAccount ¶
ProtoAccount converts a bud.Account to User.
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type Category ¶
type Category struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,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:"-"` }
func ProtoCategory ¶
ProtoCategory converts a bud.Category to Category.
func (*Category) Descriptor ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) XXX_DiscardUnknown ¶
func (m *Category) XXX_DiscardUnknown()
func (*Category) XXX_Marshal ¶
func (*Category) XXX_Unmarshal ¶
type PlannedTransaction ¶
type PlannedTransaction struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` AccountUUID string `protobuf:"bytes,2,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` CategoryUUID string `protobuf:"bytes,3,opt,name=category_uuid,json=categoryUuid,proto3" json:"category_uuid,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Recurrence string `protobuf:"bytes,6,opt,name=recurrence,proto3" json:"recurrence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ProtoPlannedTransaction ¶
func ProtoPlannedTransaction(plannedTransaction bud.PlannedTransaction) *PlannedTransaction
ProtoPlannedTransaction converts a bud.PlannedTransaction to PlannedTransaction.
func (*PlannedTransaction) Descriptor ¶
func (*PlannedTransaction) Descriptor() ([]byte, []int)
func (*PlannedTransaction) GetAccountUUID ¶
func (m *PlannedTransaction) GetAccountUUID() string
func (*PlannedTransaction) GetAmount ¶
func (m *PlannedTransaction) GetAmount() int64
func (*PlannedTransaction) GetCategoryUUID ¶
func (m *PlannedTransaction) GetCategoryUUID() string
func (*PlannedTransaction) GetDescription ¶
func (m *PlannedTransaction) GetDescription() string
func (*PlannedTransaction) GetRecurrence ¶
func (m *PlannedTransaction) GetRecurrence() string
func (*PlannedTransaction) GetUUID ¶
func (m *PlannedTransaction) GetUUID() string
func (*PlannedTransaction) Marshal ¶
func (m *PlannedTransaction) Marshal() (dAtA []byte, err error)
func (*PlannedTransaction) MarshalTo ¶
func (m *PlannedTransaction) MarshalTo(dAtA []byte) (int, error)
func (*PlannedTransaction) ProtoMessage ¶
func (*PlannedTransaction) ProtoMessage()
func (*PlannedTransaction) Reset ¶
func (m *PlannedTransaction) Reset()
func (*PlannedTransaction) Size ¶
func (m *PlannedTransaction) Size() (n int)
func (*PlannedTransaction) String ¶
func (m *PlannedTransaction) String() string
func (*PlannedTransaction) Unmarshal ¶
func (m *PlannedTransaction) Unmarshal(dAtA []byte) error
func (*PlannedTransaction) XXX_DiscardUnknown ¶
func (m *PlannedTransaction) XXX_DiscardUnknown()
func (*PlannedTransaction) XXX_Marshal ¶
func (m *PlannedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlannedTransaction) XXX_Merge ¶
func (m *PlannedTransaction) XXX_Merge(src proto.Message)
func (*PlannedTransaction) XXX_Size ¶
func (m *PlannedTransaction) XXX_Size() int
func (*PlannedTransaction) XXX_Unmarshal ¶
func (m *PlannedTransaction) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` AccountUUID string `protobuf:"bytes,2,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"` CategoryUUID string `protobuf:"bytes,3,opt,name=category_uuid,json=categoryUuid,proto3" json:"category_uuid,omitempty"` PlannedTransactionUUID string `` /* 129-byte string literal not displayed */ TransformationUUID string `protobuf:"bytes,5,opt,name=transformation_uuid,json=transformationUuid,proto3" json:"transformation_uuid,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Amount int64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"` TransactedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=transacted_at,json=transactedAt,proto3" json:"transacted_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ProtoTransaction ¶
func ProtoTransaction(transaction bud.Transaction) *Transaction
ProtoTransaction converts a bud.Transaction to Transaction.
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetAccountUUID ¶
func (m *Transaction) GetAccountUUID() string
func (*Transaction) GetAmount ¶
func (m *Transaction) GetAmount() int64
func (*Transaction) GetCategoryUUID ¶
func (m *Transaction) GetCategoryUUID() string
func (*Transaction) GetDescription ¶
func (m *Transaction) GetDescription() string
func (*Transaction) GetPlannedTransactionUUID ¶
func (m *Transaction) GetPlannedTransactionUUID() string
func (*Transaction) GetTransactedAt ¶
func (m *Transaction) GetTransactedAt() *timestamp.Timestamp
func (*Transaction) GetTransformationUUID ¶
func (m *Transaction) GetTransformationUUID() string
func (*Transaction) GetUUID ¶
func (m *Transaction) GetUUID() string
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type Transformation ¶
type Transformation struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Pattern string `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"` CategoryUUID string `protobuf:"bytes,4,opt,name=category_uuid,json=categoryUuid,proto3" json:"category_uuid,omitempty"` PlannedTransactionUUID string `` /* 129-byte string literal not displayed */ DescriptionFormat string `protobuf:"bytes,6,opt,name=description_format,json=descriptionFormat,proto3" json:"description_format,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ProtoTransformation ¶
func ProtoTransformation(transformation bud.Transformation) *Transformation
ProtoTransformation converts a bud.Transformation to Transformation.
func (*Transformation) Descriptor ¶
func (*Transformation) Descriptor() ([]byte, []int)
func (*Transformation) GetCategoryUUID ¶
func (m *Transformation) GetCategoryUUID() string
func (*Transformation) GetDescription ¶
func (m *Transformation) GetDescription() string
func (*Transformation) GetDescriptionFormat ¶
func (m *Transformation) GetDescriptionFormat() string
func (*Transformation) GetPattern ¶
func (m *Transformation) GetPattern() string
func (*Transformation) GetPlannedTransactionUUID ¶
func (m *Transformation) GetPlannedTransactionUUID() string
func (*Transformation) GetUUID ¶
func (m *Transformation) GetUUID() string
func (*Transformation) Marshal ¶
func (m *Transformation) Marshal() (dAtA []byte, err error)
func (*Transformation) ProtoMessage ¶
func (*Transformation) ProtoMessage()
func (*Transformation) Reset ¶
func (m *Transformation) Reset()
func (*Transformation) Size ¶
func (m *Transformation) Size() (n int)
func (*Transformation) String ¶
func (m *Transformation) String() string
func (*Transformation) Unmarshal ¶
func (m *Transformation) Unmarshal(dAtA []byte) error
func (*Transformation) XXX_DiscardUnknown ¶
func (m *Transformation) XXX_DiscardUnknown()
func (*Transformation) XXX_Marshal ¶
func (m *Transformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transformation) XXX_Merge ¶
func (m *Transformation) XXX_Merge(src proto.Message)
func (*Transformation) XXX_Size ¶
func (m *Transformation) XXX_Size() int
func (*Transformation) XXX_Unmarshal ¶
func (m *Transformation) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.