Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminRepository ¶
type AdminRepository interface { GetUserByID(ctx context.Context, userID int64) (model.User, error) CreateAdmin(ctx context.Context, user model.User) error DeleteUser(ctx context.Context, userID int64) error CheckUserExists(ctx context.Context, login string) (exists bool, err error) GetUsers(ctx context.Context, limit, offset int64) ([]model.User, bool, error) GetClientIDByLogin(ctx context.Context, login string) (int64, error) }
type PgClientRepository ¶
type PgClientRepository struct { Admin AdminRepository // contains filtered or unexported fields }
func New ¶
func New(db *pg_connector.Connector, log *slog.Logger) *PgClientRepository
Click to show internal directories.
Click to hide internal directories.