examine_repository

package
v0.0.0-...-cb929b8 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExamineRepository

type ExamineRepository interface {
	GetAllProjects() ([]*models.Project, error)
	GetProjectById(projectId uint) (*models.Project, error)
	CreateProject(project *models.Project) (uint, error)
	DeleteProject(projectId uint) error

	CreateManyBifs(bifs []*models.Bif) error
	GetBifByNormalizedNameOrNameInKey(normalizedBifName, bifNameInKey string) (*models.Bif, error)
	GetBifById(bifId uint) (*models.Bif, error)
	GetBifsMissingContent(projectId uint) ([]*models.Bif, error)
	UpdateBif(bif *models.Bif) error

	CreateManyResources(resources []*models.Resource) error
	FindProjectResourcesForBif(projectId uint, bifId uint) ([]*models.Resource, error)
	GetResourceById(resourceId uint) (*models.Resource, error)
	GetResourceForWhisper() (*models.Resource, error)
	UpdateResource(resource *models.Resource) error
}

type GormExamineRepository

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

func New

func New(conf *config.Config, db *gorm.DB, log zerolog.Logger) (*GormExamineRepository, error)

func (*GormExamineRepository) CreateManyBifs

func (r *GormExamineRepository) CreateManyBifs(bifs []*models.Bif) error

func (*GormExamineRepository) CreateManyResources

func (r *GormExamineRepository) CreateManyResources(resources []*models.Resource) error

func (*GormExamineRepository) CreateProject

func (r *GormExamineRepository) CreateProject(project *models.Project) (uint, error)

func (*GormExamineRepository) DeleteProject

func (r *GormExamineRepository) DeleteProject(projectId uint) error

func (*GormExamineRepository) FindProjectResourcesForBif

func (r *GormExamineRepository) FindProjectResourcesForBif(projectId uint, bifId uint) ([]*models.Resource, error)

func (*GormExamineRepository) GetAllProjects

func (r *GormExamineRepository) GetAllProjects() ([]*models.Project, error)

func (*GormExamineRepository) GetBifById

func (r *GormExamineRepository) GetBifById(bifId uint) (*models.Bif, error)

func (*GormExamineRepository) GetBifByNormalizedNameOrNameInKey

func (r *GormExamineRepository) GetBifByNormalizedNameOrNameInKey(normalizedBifName, bifNameInKey string) (*models.Bif, error)

func (*GormExamineRepository) GetBifsMissingContent

func (r *GormExamineRepository) GetBifsMissingContent(projectId uint) ([]*models.Bif, error)

func (*GormExamineRepository) GetProjectById

func (r *GormExamineRepository) GetProjectById(projectId uint) (*models.Project, error)

func (*GormExamineRepository) GetResourceById

func (r *GormExamineRepository) GetResourceById(resourceId uint) (*models.Resource, error)

func (*GormExamineRepository) GetResourceForWhisper

func (r *GormExamineRepository) GetResourceForWhisper() (*models.Resource, error)

func (*GormExamineRepository) UpdateBif

func (r *GormExamineRepository) UpdateBif(bif *models.Bif) error

func (*GormExamineRepository) UpdateResource

func (r *GormExamineRepository) UpdateResource(resource *models.Resource) error

Jump to

Keyboard shortcuts

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