repository

package
v0.0.0-...-8d360c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 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 Project

type Project struct {
	ID       string `bson:"_id"`
	Name     string `bson:"name"`
	RepoName string `bson:"repo_name"`
	URL      string `bson:"url"`
}

type ProjectMongoDBRepo

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

func NewProjectMongoDBRepo

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

func (*ProjectMongoDBRepo) FindUserRepos

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

type User

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

type UserMongoDBRepo

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

func NewUserMongoDBRepo

func NewUserMongoDBRepo(cfg config.Config, logger logr.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