repository

package
v0.0.0-...-c8e7285 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ID              string                `bson:"_id"`
	Name            string                `bson:"name"`
	RepositoryType  entity.RepositoryType `bson:"repo_type"`
	RepoName        string                `bson:"repo_name"`
	ExternalRepoURL string                `bson:"external_repo_url"`
}

type ProjectMongoDBRepo

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

func NewProjectMongoDBRepo

func NewProjectMongoDBRepo(cfg config.Config, logger logging.Logger, client *mongo.Client) *ProjectMongoDBRepo

func (*ProjectMongoDBRepo) FindUserRepos

func (p *ProjectMongoDBRepo) FindUserRepos(userID primitive.ObjectID) ([]Project, error)

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id"`
	Username string             `bson:"username"`
	Email    string             `bson:"email"`
}

type UserMongoDBRepo

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

func NewUserMongoDBRepo

func NewUserMongoDBRepo(cfg config.Config, logger logging.Logger, client *mongo.Client) *UserMongoDBRepo

NewUserMongoDBRepo implements user.Repository interface.

func (*UserMongoDBRepo) GetUser

func (u *UserMongoDBRepo) GetUser(userName string) (User, error)

Jump to

Keyboard shortcuts

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