Documentation ¶
Index ¶
- type UserRepository
- func (u *UserRepository) CreateUser(ctx context.Context, Name string) (*users.User, error)
- func (u *UserRepository) DeleteUser(ctx context.Context, userId int32) (bool, error)
- func (u *UserRepository) GetUser(ctx context.Context, userId int32) (*users.User, error)
- func (u *UserRepository) ListUsers(ctx context.Context, req *v1.ListUsersRequest) (*domain.ListUsersResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository(pool *pgxpool.Pool) *UserRepository
func (*UserRepository) CreateUser ¶
func (*UserRepository) DeleteUser ¶
func (*UserRepository) ListUsers ¶
func (u *UserRepository) ListUsers( ctx context.Context, req *v1.ListUsersRequest, ) (*domain.ListUsersResponse, error)
Click to show internal directories.
Click to hide internal directories.