Documentation ¶
Index ¶
- type Memory
- type Postgres
- func (r *Postgres) Add(ctx context.Context, usr user.User) error
- func (r *Postgres) Count(ctx context.Context) (int, error)
- func (r *Postgres) GetAll(ctx context.Context) ([]user.User, error)
- func (r *Postgres) GetByID(ctx context.Context, userID uuid.UUID) (user.User, error)
- func (r *Postgres) GetByIDs(ctx context.Context, userIDs []uuid.UUID) ([]user.User, error)
- func (r *Postgres) GetByUsername(ctx context.Context, username string) (user.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory represents in-memory storage for users data.
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres represents postgres storage for users data.
Click to show internal directories.
Click to hide internal directories.