Documentation
¶
Index ¶
- type UserPostgressRepository
- func (t UserPostgressRepository) AuthGetId(ctx context.Context, id uuid.UUID) (domain.User, error)
- func (t UserPostgressRepository) CheckUser(ctx context.Context, login string, password string) string
- func (t *UserPostgressRepository) Create(ctx context.Context, user domain.User) error
- func (t *UserPostgressRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (t UserPostgressRepository) FindById(ctx context.Context, id uuid.UUID) (domain.User, error)
- func (t UserPostgressRepository) Get(ctx context.Context, id uuid.UUID) (domain.User, error)
- func (t *UserPostgressRepository) Update(ctx context.Context, user domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserPostgressRepository ¶
type UserPostgressRepository struct {
// contains filtered or unexported fields
}
func CreatePostgressRepository ¶
func CreatePostgressRepository(dsn string) UserPostgressRepository
Click to show internal directories.
Click to hide internal directories.