database

package
v0.0.0-...-b7b4bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBRepository

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

func NewMongoDBRepository

func NewMongoDBRepository(url string) (*MongoDBRepository, error)

func (*MongoDBRepository) GetFullProfile

func (mongo *MongoDBRepository) GetFullProfile(ctx context.Context, lang string) (fullProfile *models.FullProfile, err error)

func (*MongoDBRepository) GetJobs

func (mongo *MongoDBRepository) GetJobs(ctx context.Context, lang string) ([]*models.Job, error)

func (*MongoDBRepository) GetProfile

func (mongo *MongoDBRepository) GetProfile(ctx context.Context, lang string) (profile *models.Profile, err error)

func (*MongoDBRepository) GetProjects

func (mongo *MongoDBRepository) GetProjects(ctx context.Context, lang string) ([]*models.Project, error)

Jump to

Keyboard shortcuts

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