Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Create(repo *entity.Repo) (*entity.Repo, error)
- func (r *Repository) Delete(repoId string) error
- func (r *Repository) DeleteMany(userId string) error
- func (r *Repository) FindAll(userId string) ([]*entity.Repo, error)
- func (r *Repository) FindById(repoID string) (*entity.Repo, error)
- func (r *Repository) FindByUrlAndUserId(url string, userId string) (*entity.Repo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
Collection *mongo.Collection
}
func NewRepository ¶
func NewRepository(db *mongo.Database) *Repository
func (*Repository) Delete ¶
func (r *Repository) Delete(repoId string) error
func (*Repository) DeleteMany ¶
func (r *Repository) DeleteMany(userId string) error
func (*Repository) FindByUrlAndUserId ¶
Click to show internal directories.
Click to hide internal directories.