Documentation ¶
Index ¶
- type ExamineRepository
- type GormExamineRepository
- func (r *GormExamineRepository) CreateManyBifs(bifs []*models.Bif) error
- func (r *GormExamineRepository) CreateManyResources(resources []*models.Resource) error
- func (r *GormExamineRepository) CreateProject(project *models.Project) (uint, error)
- func (r *GormExamineRepository) DeleteProject(projectId uint) error
- func (r *GormExamineRepository) FindProjectResourcesForBif(projectId uint, bifId uint) ([]*models.Resource, error)
- func (r *GormExamineRepository) GetAllProjects() ([]*models.Project, error)
- func (r *GormExamineRepository) GetBifById(bifId uint) (*models.Bif, error)
- func (r *GormExamineRepository) GetBifByNormalizedNameOrNameInKey(normalizedBifName, bifNameInKey string) (*models.Bif, error)
- func (r *GormExamineRepository) GetBifsMissingContent(projectId uint) ([]*models.Bif, error)
- func (r *GormExamineRepository) GetProjectById(projectId uint) (*models.Project, error)
- func (r *GormExamineRepository) GetResourceById(resourceId uint) (*models.Resource, error)
- func (r *GormExamineRepository) GetResourceForWhisper() (*models.Resource, error)
- func (r *GormExamineRepository) UpdateBif(bif *models.Bif) error
- func (r *GormExamineRepository) UpdateResource(resource *models.Resource) error
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 (*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 (*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
Click to show internal directories.
Click to hide internal directories.