Documentation ¶
Index ¶
- type CurrencyRepository
- func (r CurrencyRepository) FindActiveForDevelopers(ctx context.Context) ([]entity.RegionCurrency, error)
- func (r CurrencyRepository) FindActiveForUsers(ctx context.Context) ([]entity.RegionCurrency, error)
- func (r CurrencyRepository) FindAll(ctx context.Context) ([]entity.RegionCurrency, error)
- func (r CurrencyRepository) FindByCurrencyCode(ctx context.Context, code string) (*entity.RegionCurrency, error)
- func (r CurrencyRepository) FindByID(ctx context.Context, id uint) (*entity.RegionCurrency, error)
- func (r CurrencyRepository) FindByRegionAndCurrencyCodes(ctx context.Context, regionCode, currencyCode string) (*entity.RegionCurrency, error)
- func (r CurrencyRepository) Update(ctx context.Context, i *entity.RegionCurrency) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyRepository ¶
type CurrencyRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(env *env.Postgres) CurrencyRepository
func (CurrencyRepository) FindActiveForDevelopers ¶
func (r CurrencyRepository) FindActiveForDevelopers(ctx context.Context) ([]entity.RegionCurrency, error)
func (CurrencyRepository) FindActiveForUsers ¶
func (r CurrencyRepository) FindActiveForUsers(ctx context.Context) ([]entity.RegionCurrency, error)
func (CurrencyRepository) FindAll ¶
func (r CurrencyRepository) FindAll(ctx context.Context) ([]entity.RegionCurrency, error)
func (CurrencyRepository) FindByCurrencyCode ¶
func (r CurrencyRepository) FindByCurrencyCode(ctx context.Context, code string) (*entity.RegionCurrency, error)
func (CurrencyRepository) FindByID ¶
func (r CurrencyRepository) FindByID(ctx context.Context, id uint) (*entity.RegionCurrency, error)
func (CurrencyRepository) FindByRegionAndCurrencyCodes ¶
func (r CurrencyRepository) FindByRegionAndCurrencyCodes(ctx context.Context, regionCode, currencyCode string) (*entity.RegionCurrency, error)
func (CurrencyRepository) Update ¶
func (r CurrencyRepository) Update(ctx context.Context, i *entity.RegionCurrency) error
Click to show internal directories.
Click to hide internal directories.