Documentation ¶
Index ¶
- func CreateContributor(contributor *models.Contributor) error
- func CreateRepository(repository *models.Repository) error
- func CreateWeek(week *models.Week) error
- func DeleteContributorsByRepositoryID(id uint64) (models.Contributor, error)
- func DeleteRepositoryByID(id uint64) (models.Repository, error)
- func DeleteWeeksByRepositoryID(id uint64) error
- func FetchContributors(repository *models.Repository) ([]models.Contributor, error)
- func FetchWeeks(repository *models.Repository) ([]models.Week, error)
- func FindAllRepository() (*[]models.Repository, error)
- func FindAllWeek() (*[]models.Week, error)
- func FindContributorByID(id uint64) (*models.Contributor, error)
- func FindRepositoryByAuthorAndName(name, author string) (*models.Repository, error)
- func FindRepositoryByID(id uint64) (*models.Repository, error)
- func FindTopContributorsByRepositoryID(id uint64) (*[]models.Contributor, error)
- func FindWeekByID(id uint64) (*models.Week, error)
- func FindWeeksByRepositoryID(id uint64) (*[]models.Week, error)
- func GetFirstDateOfWeek() (weekMonday time.Time)
- func UpdateContributorByID(contributor *models.Contributor, id uint64) error
- func UpdateRepositoryByID(repository *models.Repository, id uint64) error
- func UpdateWeekByID(week *models.Week, id uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContributor ¶
func CreateContributor(contributor *models.Contributor) error
func CreateRepository ¶
func CreateRepository(repository *models.Repository) error
func CreateWeek ¶
func DeleteContributorsByRepositoryID ¶
func DeleteContributorsByRepositoryID(id uint64) (models.Contributor, error)
func DeleteRepositoryByID ¶
func DeleteRepositoryByID(id uint64) (models.Repository, error)
func FetchContributors ¶
func FetchContributors(repository *models.Repository) ([]models.Contributor, error)
func FetchWeeks ¶
func FetchWeeks(repository *models.Repository) ([]models.Week, error)
func FindAllRepository ¶
func FindAllRepository() (*[]models.Repository, error)
func FindAllWeek ¶
func FindContributorByID ¶
func FindContributorByID(id uint64) (*models.Contributor, error)
func FindRepositoryByAuthorAndName ¶
func FindRepositoryByAuthorAndName(name, author string) (*models.Repository, error)
func FindRepositoryByID ¶
func FindRepositoryByID(id uint64) (*models.Repository, error)
func FindTopContributorsByRepositoryID ¶
func FindTopContributorsByRepositoryID(id uint64) (*[]models.Contributor, error)
func GetFirstDateOfWeek ¶
Gets the date of Monday this week
func UpdateContributorByID ¶
func UpdateContributorByID(contributor *models.Contributor, id uint64) error
func UpdateRepositoryByID ¶
func UpdateRepositoryByID(repository *models.Repository, id uint64) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.