repository

package
v0.0.0-...-0091320 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PixKeyRepositoryDb

type PixKeyRepositoryDb struct {
	Db *gorm.DB
}

PixKeyRepositoryDb represents a repository for pixKey operations

func (*PixKeyRepositoryDb) AddAccount

func (repository *PixKeyRepositoryDb) AddAccount(account *model.Account) error

AddAccount adds a new account to the database

func (*PixKeyRepositoryDb) AddBank

func (repository *PixKeyRepositoryDb) AddBank(bank *model.Bank) error

AddBank adds a new bank to the database

func (*PixKeyRepositoryDb) FindAccount

func (repository *PixKeyRepositoryDb) FindAccount(id string) (*model.Account, error)

FindAccount search for a account

func (*PixKeyRepositoryDb) FindBank

func (repository *PixKeyRepositoryDb) FindBank(id string) (*model.Bank, error)

FindBank search for a bank

func (*PixKeyRepositoryDb) FindKeyByKind

func (repository *PixKeyRepositoryDb) FindKeyByKind(key string, kind string) (*model.PixKey, error)

FindKeyByKind search for a key and kind

func (*PixKeyRepositoryDb) RegisterKey

func (repository *PixKeyRepositoryDb) RegisterKey(pixKey *model.PixKey) (*model.PixKey, error)

RegisterKey registers a new pixKey to the database

type TransactionRepositoryDb

type TransactionRepositoryDb struct {
	Db *gorm.DB
}

TransactionRepositoryDb represents a repository for transaction operations

func (*TransactionRepositoryDb) Find

func (repository *TransactionRepositoryDb) Find(id string) (*model.Transaction, error)

Find search for a transaction

func (*TransactionRepositoryDb) Register

func (repository *TransactionRepositoryDb) Register(transaction *model.Transaction) error

Register registers a new transaction

func (*TransactionRepositoryDb) Save

func (repository *TransactionRepositoryDb) Save(transaction *model.Transaction) error

Save saves a existing transaction

Jump to

Keyboard shortcuts

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