repo

package
v0.0.0-...-d67b91f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) AddBinary

func (r *GophKeeperRepo) AddBinary(binary *entity.Binary) error

func (*GophKeeperRepo) AddCard

func (r *GophKeeperRepo) AddCard(card *entity.Card) error

func (*GophKeeperRepo) AddLogin

func (r *GophKeeperRepo) AddLogin(login *entity.Login) error

func (*GophKeeperRepo) AddNote

func (r *GophKeeperRepo) AddNote(note *entity.SecretNote) error

func (*GophKeeperRepo) AddUser

func (r *GophKeeperRepo) AddUser(user *entity.User) error

func (*GophKeeperRepo) DelBinary

func (r *GophKeeperRepo) DelBinary(binaryID uuid.UUID) error

func (*GophKeeperRepo) DelCard

func (r *GophKeeperRepo) DelCard(cardID uuid.UUID) error

func (*GophKeeperRepo) DelLogin

func (r *GophKeeperRepo) DelLogin(loginID uuid.UUID) error

func (*GophKeeperRepo) DelNote

func (r *GophKeeperRepo) DelNote(noteID uuid.UUID) error

func (*GophKeeperRepo) DropUserToken

func (r *GophKeeperRepo) DropUserToken() error

func (*GophKeeperRepo) GetBinaryByID

func (r *GophKeeperRepo) GetBinaryByID(binaryID uuid.UUID) (binary entity.Binary, err error)

func (*GophKeeperRepo) GetCardByID

func (r *GophKeeperRepo) GetCardByID(cardID uuid.UUID) (card entity.Card, err error)

func (*GophKeeperRepo) GetLoginByID

func (r *GophKeeperRepo) GetLoginByID(loginID uuid.UUID) (login entity.Login, err error)

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) SaveCards

func (r *GophKeeperRepo) SaveCards(cards []entity.Card) 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 (r *GophKeeperRepo) UpdateUserToken(user *entity.User, token *entity.JWT) error

func (*GophKeeperRepo) UserExistsByEmail

func (r *GophKeeperRepo) UserExistsByEmail(email string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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