Documentation ¶
Index ¶
- type GophKeeperRepo
- func (r *GophKeeperRepo) AddBinary(binary *entity.Binary) error
- func (r *GophKeeperRepo) AddCard(card *entity.Card) error
- func (r *GophKeeperRepo) AddLogin(login *entity.Login) error
- func (r *GophKeeperRepo) AddNote(note *entity.SecretNote) error
- func (r *GophKeeperRepo) AddUser(user *entity.User) error
- func (r *GophKeeperRepo) DelBinary(binaryID uuid.UUID) error
- func (r *GophKeeperRepo) DelCard(cardID uuid.UUID) error
- func (r *GophKeeperRepo) DelLogin(loginID uuid.UUID) error
- func (r *GophKeeperRepo) DelNote(noteID uuid.UUID) error
- func (r *GophKeeperRepo) DropUserToken() error
- func (r *GophKeeperRepo) GetBinaryByID(binaryID uuid.UUID) (binary entity.Binary, err error)
- func (r *GophKeeperRepo) GetCardByID(cardID uuid.UUID) (card entity.Card, err error)
- func (r *GophKeeperRepo) GetLoginByID(loginID uuid.UUID) (login entity.Login, err error)
- func (r *GophKeeperRepo) GetNoteByID(noteID uuid.UUID) (note entity.SecretNote, err error)
- func (r *GophKeeperRepo) GetSavedAccessToken() (accessToken string, err error)
- func (r *GophKeeperRepo) GetUserPasswordHash() string
- func (r *GophKeeperRepo) LoadBinaries() []viewsets.BinaryForList
- func (r *GophKeeperRepo) LoadCards() []viewsets.CardForList
- func (r *GophKeeperRepo) LoadLogins() []viewsets.LoginForList
- func (r *GophKeeperRepo) LoadNotes() []viewsets.NoteForList
- func (r *GophKeeperRepo) MigrateDB()
- func (r *GophKeeperRepo) RemoveUsers()
- func (r *GophKeeperRepo) SaveBinaries(binaries []entity.Binary) error
- func (r *GophKeeperRepo) SaveCards(cards []entity.Card) error
- func (r *GophKeeperRepo) SaveLogins(logins []entity.Login) error
- func (r *GophKeeperRepo) SaveNotes(notes []entity.SecretNote) error
- func (r *GophKeeperRepo) UpdateUserToken(user *entity.User, token *entity.JWT) error
- func (r *GophKeeperRepo) UserExistsByEmail(email string) bool
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
}
func New ¶
func New(dbFileName string) *GophKeeperRepo
func (*GophKeeperRepo) AddNote ¶
func (r *GophKeeperRepo) AddNote(note *entity.SecretNote) error
func (*GophKeeperRepo) DropUserToken ¶
func (r *GophKeeperRepo) DropUserToken() error
func (*GophKeeperRepo) GetBinaryByID ¶
func (*GophKeeperRepo) GetCardByID ¶
func (*GophKeeperRepo) GetLoginByID ¶
func (*GophKeeperRepo) GetNoteByID ¶
func (r *GophKeeperRepo) GetNoteByID(noteID uuid.UUID) (note entity.SecretNote, err error)
func (*GophKeeperRepo) GetSavedAccessToken ¶
func (r *GophKeeperRepo) GetSavedAccessToken() (accessToken string, err error)
func (*GophKeeperRepo) GetUserPasswordHash ¶
func (r *GophKeeperRepo) GetUserPasswordHash() string
func (*GophKeeperRepo) LoadBinaries ¶
func (r *GophKeeperRepo) LoadBinaries() []viewsets.BinaryForList
func (*GophKeeperRepo) LoadCards ¶
func (r *GophKeeperRepo) LoadCards() []viewsets.CardForList
func (*GophKeeperRepo) LoadLogins ¶
func (r *GophKeeperRepo) LoadLogins() []viewsets.LoginForList
func (*GophKeeperRepo) LoadNotes ¶
func (r *GophKeeperRepo) LoadNotes() []viewsets.NoteForList
func (*GophKeeperRepo) MigrateDB ¶
func (r *GophKeeperRepo) MigrateDB()
func (*GophKeeperRepo) RemoveUsers ¶
func (r *GophKeeperRepo) RemoveUsers()
func (*GophKeeperRepo) SaveBinaries ¶
func (r *GophKeeperRepo) SaveBinaries(binaries []entity.Binary) error
func (*GophKeeperRepo) SaveLogins ¶
func (r *GophKeeperRepo) SaveLogins(logins []entity.Login) error
func (*GophKeeperRepo) SaveNotes ¶
func (r *GophKeeperRepo) SaveNotes(notes []entity.SecretNote) error
func (*GophKeeperRepo) UpdateUserToken ¶
func (*GophKeeperRepo) UserExistsByEmail ¶
func (r *GophKeeperRepo) UserExistsByEmail(email string) bool
Click to show internal directories.
Click to hide internal directories.