Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Respository ¶
type Respository struct {
// contains filtered or unexported fields
}
func NewRespository ¶
func NewRespository(db *pgxpool.Pool) *Respository
func (*Respository) AllIDs ¶
func (DB *Respository) AllIDs() ([]int64, error)
AllIDs returns a slice of all user id and an error
func (*Respository) Delete ¶
func (DB *Respository) Delete(id int64) error
func (*Respository) IsUser ¶
func (DB *Respository) IsUser(id int64) bool
IsUser returns true if user is found in the db and false otherwise.
func (*Respository) Migrate ¶
func (DB *Respository) Migrate() error
Click to show internal directories.
Click to hide internal directories.