thirdparty_bakers

package
Version: v0.0.0-...-0616b20 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	DeleteAll() error
	Create(bakers []models.ThirdPartyBaker) error
	GetAggregatedBakers() (bakers []models.ThirdPartyBakerAgg, err error)
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository is the third party bakers repo implementation.

func New

func New(db *gorm.DB) *Repository

New creates an instance of repository using the provided db.

func (*Repository) Create

func (r *Repository) Create(bakers []models.ThirdPartyBaker) error

Create third party bakers

func (*Repository) DeleteAll

func (r *Repository) DeleteAll() error

Delete all third party bakers

func (*Repository) GetAggregatedBakers

func (r *Repository) GetAggregatedBakers() (bakers []models.ThirdPartyBakerAgg, err error)

Get all aggregated third party bakers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL