repositories

package
v0.0.0-...-a58b211 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MovieTagCollectionName = "MovieTags"
View Source
const ProfileCollectionName = "Profiles"
View Source
const UserCollectionName = "Users"

Variables

This section is empty.

Functions

This section is empty.

Types

type MovieTagRepo

type MovieTagRepo struct {
	*mongodb.MongoDB
}

MovieTagRepo -.

func NewMovieTagRepo

func NewMovieTagRepo(mdb *mongodb.MongoDB) *MovieTagRepo

New -.

func (*MovieTagRepo) Create

func (ur *MovieTagRepo) Create(ctx context.Context, Genre_id string) (entity.MovieTag, error)

Create -.

func (*MovieTagRepo) Delete

func (ur *MovieTagRepo) Delete(ctx context.Context, MovieTag_id string) error

Delete -.

func (*MovieTagRepo) GetAll

func (ur *MovieTagRepo) GetAll(ctx context.Context) ([]entity.MovieTag, error)

GetAll -.

func (*MovieTagRepo) GetById

func (ur *MovieTagRepo) GetById(ctx context.Context, MovieTag_id string) (entity.MovieTag, error)

GetById -.

func (*MovieTagRepo) Update

func (ur *MovieTagRepo) Update(ctx context.Context, MovieTag_id string, MovieTag entity.MovieTag) error

Update -.

type ProfileRepo

type ProfileRepo struct {
	*mongodb.MongoDB
}

ProfileRepo -.

func NewProfileRepo

func NewProfileRepo(mdb *mongodb.MongoDB) *ProfileRepo

New -.

func (*ProfileRepo) Create

func (ur *ProfileRepo) Create(ctx context.Context, Profile entity.Profile) (entity.Profile, error)

Create -.

func (*ProfileRepo) Delete

func (ur *ProfileRepo) Delete(ctx context.Context, Profile_id string) error

Delete -.

func (*ProfileRepo) GetAll

func (ur *ProfileRepo) GetAll(ctx context.Context) ([]entity.Profile, error)

GetAll -.

func (*ProfileRepo) GetAllById

func (ur *ProfileRepo) GetAllById(ctx context.Context, user_id string) ([]entity.Profile, error)

GetById -.

func (*ProfileRepo) GetById

func (ur *ProfileRepo) GetById(ctx context.Context, Profile_id string) (entity.Profile, error)

GetById -.

func (*ProfileRepo) Update

func (ur *ProfileRepo) Update(ctx context.Context, Profile_id string, Profile entity.Profile) error

Update -.

type UserRepo

type UserRepo struct {
	*mongodb.MongoDB
}

UserRepo -.

func NewUserRepo

func NewUserRepo(mdb *mongodb.MongoDB) *UserRepo

New -.

func (*UserRepo) Create

func (ur *UserRepo) Create(ctx context.Context, keycloak_id string) (entity.User, error)

Create -.

func (*UserRepo) Delete

func (ur *UserRepo) Delete(ctx context.Context, user_id string) error

Delete -.

func (*UserRepo) GetAll

func (ur *UserRepo) GetAll(ctx context.Context) ([]entity.User, error)

GetAll -.

func (*UserRepo) GetById

func (ur *UserRepo) GetById(ctx context.Context, User_id string) (entity.User, error)

GetById -.

func (*UserRepo) GetByKeycloakId

func (ur *UserRepo) GetByKeycloakId(ctx context.Context, keycloak_id string) (entity.User, error)

GetById -.

func (*UserRepo) Update

func (ur *UserRepo) Update(ctx context.Context, User_id string, User entity.User) error

Update -.

Jump to

Keyboard shortcuts

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