Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRepository ¶
type LinkRepository ¶
type LinkRepository interface { //Returns specific Link between two users Get(senderId uint, receiverId uint) (Link, error) //Returns all links concerned with the user GetById(userId string) ([]Link, error) //Returns all links concerned with the user that are accepted GetAcceptedById(userId uint) ([]Link, error) //Persists link. Save(link *Link) error }
type PostgresBookRepository ¶
func (*PostgresBookRepository) GetBook ¶
func (r *PostgresBookRepository) GetBook(isbn string) (Book, error)
func (*PostgresBookRepository) Save ¶
func (r *PostgresBookRepository) Save(book Book) error
type PostgresLinkRepository ¶
func (*PostgresLinkRepository) Get ¶
func (r *PostgresLinkRepository) Get(senderId uint, receiverId uint) (Link, error)
func (*PostgresLinkRepository) GetAcceptedById ¶
func (r *PostgresLinkRepository) GetAcceptedById(userId uint) ([]Link, error)
func (*PostgresLinkRepository) GetById ¶
func (r *PostgresLinkRepository) GetById(userId string) ([]Link, error)
func (*PostgresLinkRepository) Save ¶
func (r *PostgresLinkRepository) Save(link *Link) error
type PostgresUserRepository ¶
func (*PostgresUserRepository) Get ¶
func (r *PostgresUserRepository) Get(id uint) (User, error)
func (*PostgresUserRepository) GetByEmail ¶
func (r *PostgresUserRepository) GetByEmail(email string) (User, error)
func (*PostgresUserRepository) Save ¶
func (r *PostgresUserRepository) Save(user *User) error
func (*PostgresUserRepository) SearchBook ¶
func (r *PostgresUserRepository) SearchBook(isbn string) ([]User, error)
Click to show internal directories.
Click to hide internal directories.