Documentation ¶
Index ¶
- type GophKeeperRepo
- func (r *GophKeeperRepo) AddBinary(ctx context.Context, binary *entity.Binary, userID uuid.UUID) error
- func (r *GophKeeperRepo) AddBinaryMeta(ctx context.Context, currentUser *entity.User, binaryUUID uuid.UUID, ...) (*entity.Binary, error)
- func (r *GophKeeperRepo) AddCard(ctx context.Context, card *entity.Card, userID uuid.UUID) error
- func (r *GophKeeperRepo) AddLogin(ctx context.Context, login *entity.Login, userID uuid.UUID) error
- func (r *GophKeeperRepo) AddNote(ctx context.Context, note *entity.SecretNote, userID uuid.UUID) error
- func (r *GophKeeperRepo) AddUser(ctx context.Context, email, hashedPassword string) (user entity.User, err error)
- func (r *GophKeeperRepo) DBHealthCheck() error
- func (r *GophKeeperRepo) DelCard(ctx context.Context, cardUUID, userID uuid.UUID) error
- func (r *GophKeeperRepo) DelLogin(ctx context.Context, loginID, userID uuid.UUID) error
- func (r *GophKeeperRepo) DelNote(ctx context.Context, noteID, userID uuid.UUID) error
- func (r *GophKeeperRepo) DelUserBinary(ctx context.Context, currentUser *entity.User, binaryUUID uuid.UUID) error
- func (r *GophKeeperRepo) GetBinaries(ctx context.Context, user entity.User) ([]entity.Binary, error)
- func (r *GophKeeperRepo) GetBinary(ctx context.Context, binaryID, userID uuid.UUID) (*entity.Binary, error)
- func (r *GophKeeperRepo) GetCards(ctx context.Context, user entity.User) ([]entity.Card, error)
- func (r *GophKeeperRepo) GetLogins(ctx context.Context, user entity.User) (logins []entity.Login, err error)
- func (r *GophKeeperRepo) GetNotes(ctx context.Context, user entity.User) ([]entity.SecretNote, error)
- func (r *GophKeeperRepo) GetSecretNotes(ctx context.Context, user entity.User) (notes []entity.SecretNote, err error)
- func (r *GophKeeperRepo) GetUserByEmail(ctx context.Context, email, hashedPassword string) (user entity.User, err error)
- func (r *GophKeeperRepo) GetUserByID(ctx context.Context, id string) (user entity.User, err error)
- func (r *GophKeeperRepo) IsCardOwner(ctx context.Context, cardUUID, userID uuid.UUID) bool
- func (r *GophKeeperRepo) IsLoginOwner(ctx context.Context, loginID, userID uuid.UUID) bool
- func (r *GophKeeperRepo) IsNoteOwner(ctx context.Context, noteID, userID uuid.UUID) bool
- func (r *GophKeeperRepo) Migrate()
- func (r *GophKeeperRepo) ShutDown()
- func (r *GophKeeperRepo) UpdateCard(ctx context.Context, card *entity.Card, userID uuid.UUID) error
- func (r *GophKeeperRepo) UpdateLogin(ctx context.Context, login *entity.Login, userID uuid.UUID) error
- func (r *GophKeeperRepo) UpdateNote(ctx context.Context, note *entity.SecretNote, userID uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GophKeeperRepo ¶
type GophKeeperRepo struct {
// contains filtered or unexported fields
}
GophKeeper - Repo.
func (*GophKeeperRepo) AddBinaryMeta ¶
func (*GophKeeperRepo) AddNote ¶
func (r *GophKeeperRepo) AddNote(ctx context.Context, note *entity.SecretNote, userID uuid.UUID) error
func (*GophKeeperRepo) DBHealthCheck ¶
func (r *GophKeeperRepo) DBHealthCheck() error
func (*GophKeeperRepo) DelUserBinary ¶
func (*GophKeeperRepo) GetBinaries ¶
func (*GophKeeperRepo) GetNotes ¶
func (r *GophKeeperRepo) GetNotes(ctx context.Context, user entity.User) ([]entity.SecretNote, error)
func (*GophKeeperRepo) GetSecretNotes ¶
func (r *GophKeeperRepo) GetSecretNotes(ctx context.Context, user entity.User) (notes []entity.SecretNote, err error)
func (*GophKeeperRepo) GetUserByEmail ¶
func (*GophKeeperRepo) GetUserByID ¶
func (*GophKeeperRepo) IsCardOwner ¶
func (*GophKeeperRepo) IsLoginOwner ¶
func (*GophKeeperRepo) IsNoteOwner ¶
func (*GophKeeperRepo) Migrate ¶
func (r *GophKeeperRepo) Migrate()
func (*GophKeeperRepo) ShutDown ¶
func (r *GophKeeperRepo) ShutDown()
func (*GophKeeperRepo) UpdateCard ¶
func (*GophKeeperRepo) UpdateLogin ¶
func (*GophKeeperRepo) UpdateNote ¶
func (r *GophKeeperRepo) UpdateNote(ctx context.Context, note *entity.SecretNote, userID uuid.UUID) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.