Skip to content

Commit

Permalink
gui: Move package to internal.
Browse files Browse the repository at this point in the history
dcrpool is an application and thus all of its package not intended for
external consumers should not be publicly visible.

To that end, this moves the gui package to an internal package meaning
that it is no longer a part of the exported main module.
  • Loading branch information
davecgh authored and jholdstock committed Sep 13, 2023
1 parent 26ee72b commit 2392120
Show file tree
Hide file tree
Showing 92 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ dcrpool --configfile=path/to/config.conf
## Configuration

dcrpool requires [dcrd](https://github.com/decred/dcrd) and [dcrwallet](https://github.com/decred/dcrwallet) when configured as a mining pool, it only requires dcrd when configured as a solo pool.
Deploying the user interface requires copying the `dcrpool/gui/assets` folder from
source to a reachable location and updating the gui directory (`--guidir`) of
the configuration. Currently only single instance deployments are supported,
support for distributed deployments will be implemented in the future.
Deploying the user interface requires copying the `dcrpool/internal/gui/assets`
folder from source to a reachable location and updating the gui directory
(`--guidir`) of the configuration. Currently only single instance deployments
are supported, support for distributed deployments will be implemented in the
future.

### Example of a solo pool configuration

Expand Down
2 changes: 1 addition & 1 deletion dcrpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"

"github.com/decred/dcrd/rpcclient/v8"
"github.com/decred/dcrpool/gui"
"github.com/decred/dcrpool/internal/gui"
"github.com/decred/dcrpool/pool"
)

Expand Down
2 changes: 1 addition & 1 deletion harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ mkdir -p "${HARNESS_ROOT}/vwallet"
mkdir -p "${HARNESS_ROOT}/pool"
mkdir -p "${HARNESS_ROOT}/gui"

cp -r gui/assets ${GUI_DIR}/assets
cp -r internal/gui/assets ${GUI_DIR}/assets

for ((i = 0; i < $NUMBER_OF_CLIENTS; i++)); do
PROFILE_PORT=$(($i + 6061))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/decred/slog"
"github.com/jrick/logrotate/rotator"

"github.com/decred/dcrpool/gui"
"github.com/decred/dcrpool/internal/gui"
"github.com/decred/dcrpool/pool"
)

Expand Down

0 comments on commit 2392120

Please sign in to comment.