chore(project): change module name

This commit is contained in:
Dustin Stiles 2025-04-01 10:57:37 -04:00
parent 5cca5467bb
commit c348363f5c
Signed by: duwstiles
GPG Key ID: BCD9912EC231FC87
25 changed files with 51 additions and 51 deletions

View File

@ -10,9 +10,9 @@
```bash ```bash
# Run a server # Run a server
go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main go run git.numenor-labs.us/dsfx/cmd/dsfx@main
# serving: dsfx://0.0.0.0:8000#<ed25519_public_key> # serving: dsfx://0.0.0.0:8000#<ed25519_public_key>
# Get the client # Get the client
go run numenor-labs.us/dsfx/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000#<ed25519_public_key> go run git.numenor-labs.us/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000#<ed25519_public_key>
``` ```

View File

@ -3,9 +3,9 @@ package main
import ( import (
"context" "context"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/system" "git.numenor-labs.us/dsfx/internal/lib/system"
"numenor-labs.us/dsfx/dsfx/internal/peer" "git.numenor-labs.us/dsfx/internal/peer"
) )
func main() { func main() {

View File

@ -3,9 +3,9 @@ package main
import ( import (
"context" "context"
"numenor-labs.us/dsfx/dsfx/internal/client" "git.numenor-labs.us/dsfx/internal/client"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/system" "git.numenor-labs.us/dsfx/internal/lib/system"
) )
func main() { func main() {

View File

@ -134,7 +134,7 @@ can slow down the server. To mitigate this, we recommend:
## Handling Errors ## Handling Errors
Errors must always be handled explicitly - they are never ignored. In a function that can produce Errors must always be handled explicitly - they are never ignored. In a function that can produce
more than one error, wrap the errors using `fmt.Errorf("%v")` to provide additional debugging context more than one error, wrap the errors using `fmt.Errorf("%w")` to provide additional debugging context
in a way that preserves the original error for use with `errors.Is` and `errors.As`. This allows in a way that preserves the original error for use with `errors.Is` and `errors.As`. This allows
for better error handling and debugging, especially in complex systems where multiple errors can for better error handling and debugging, especially in complex systems where multiple errors can
occur. occur.

View File

@ -8,7 +8,7 @@ server on your deployment machine.
If you opted to _not_ install dsfx locally, then you can run it directly with the go toolchain. If you opted to _not_ install dsfx locally, then you can run it directly with the go toolchain.
```bash ```bash
go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main go run git.numenor-labs.us/dsfx/cmd/dsfx@main
``` ```
Otherwise, you can run the server with the `dsfx` command. For those who built Otherwise, you can run the server with the `dsfx` command. For those who built

View File

@ -44,7 +44,7 @@ Now that you have the go toolchain set up with access to our repository, you can
project by using the `go install` command. project by using the `go install` command.
```bash ```bash
go install numenor-labs.us/dsfx/dsfx/cmd/dsfx@main go install git.numenor-labs.us/dsfx/cmd/dsfx@main
``` ```
Assuming that you have the `GOPATH` environment variable set up correctly, you will now be able to Assuming that you have the `GOPATH` environment variable set up correctly, you will now be able to

2
go.mod
View File

@ -1,3 +1,3 @@
module numenor-labs.us/dsfx/dsfx module git.numenor-labs.us/dsfx
go 1.24.1 go 1.24.1

View File

@ -13,12 +13,12 @@ import (
"net" "net"
"os" "os"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/logging" "git.numenor-labs.us/dsfx/internal/lib/logging"
"numenor-labs.us/dsfx/dsfx/internal/lib/network" "git.numenor-labs.us/dsfx/internal/lib/network"
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" "git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
"numenor-labs.us/dsfx/dsfx/internal/lib/system" "git.numenor-labs.us/dsfx/internal/lib/system"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"crypto/rand" "crypto/rand"
"testing" "testing"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
) )
func TestEncryptDecrypt(t *testing.T) { func TestEncryptDecrypt(t *testing.T) {

View File

@ -3,7 +3,7 @@ package disk_test
import ( import (
"testing" "testing"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
) )
func TestDefaultDisk(t *testing.T) { func TestDefaultDisk(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"numenor-labs.us/dsfx/dsfx/internal/lib/frame" "git.numenor-labs.us/dsfx/internal/lib/frame"
) )
func TestLenPrefixedWriteTo(t *testing.T) { func TestLenPrefixedWriteTo(t *testing.T) {

View File

@ -10,12 +10,12 @@ import (
"io" "io"
"log/slog" "log/slog"
"numenor-labs.us/dsfx/dsfx/internal/lib/assert" "git.numenor-labs.us/dsfx/internal/lib/assert"
"numenor-labs.us/dsfx/dsfx/internal/lib/buffer" "git.numenor-labs.us/dsfx/internal/lib/buffer"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/keyexchange" "git.numenor-labs.us/dsfx/internal/lib/crypto/keyexchange"
"numenor-labs.us/dsfx/dsfx/internal/lib/logging" "git.numenor-labs.us/dsfx/internal/lib/logging"
) )
const ( const (

View File

@ -10,8 +10,8 @@ import (
"sync" "sync"
"testing" "testing"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake" "git.numenor-labs.us/dsfx/internal/lib/handshake"
) )
func TestHandshake(t *testing.T) { func TestHandshake(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"net" "net"
"strings" "strings"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
) )
var ( var (

View File

@ -5,8 +5,8 @@ import (
"net" "net"
"time" "time"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption" "git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
"numenor-labs.us/dsfx/dsfx/internal/lib/frame" "git.numenor-labs.us/dsfx/internal/lib/frame"
) )
// Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is // Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is

View File

@ -6,8 +6,8 @@ import (
"log/slog" "log/slog"
"net" "net"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake" "git.numenor-labs.us/dsfx/internal/lib/handshake"
) )
// Listener ... // Listener ...

View File

@ -5,8 +5,8 @@ import (
"crypto/ed25519" "crypto/ed25519"
"net" "net"
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake" "git.numenor-labs.us/dsfx/internal/lib/handshake"
"numenor-labs.us/dsfx/dsfx/internal/lib/logging" "git.numenor-labs.us/dsfx/internal/lib/logging"
) )
// Dial ... // Dial ...

View File

@ -4,7 +4,7 @@ import (
"io/fs" "io/fs"
"path/filepath" "path/filepath"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
) )
// StorageScope is an interface that extends the disk.Disk interface by ensuring // StorageScope is an interface that extends the disk.Disk interface by ensuring

View File

@ -4,8 +4,8 @@ import (
"io/fs" "io/fs"
"testing" "testing"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" "git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
) )
func TestScopedStorage_Scope(t *testing.T) { func TestScopedStorage_Scope(t *testing.T) {

View File

@ -3,7 +3,7 @@ package system
import ( import (
"os" "os"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
) )
// Default returns a default implementation of the System interface. // Default returns a default implementation of the System interface.

View File

@ -1,7 +1,7 @@
package system package system
import ( import (
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
) )
type System interface { type System interface {

View File

@ -13,12 +13,12 @@ import (
"os" "os"
"strings" "strings"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/logging" "git.numenor-labs.us/dsfx/internal/lib/logging"
"numenor-labs.us/dsfx/dsfx/internal/lib/network" "git.numenor-labs.us/dsfx/internal/lib/network"
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped" "git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
"numenor-labs.us/dsfx/dsfx/internal/lib/system" "git.numenor-labs.us/dsfx/internal/lib/system"
) )
const ( const (

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"time" "time"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
) )
// Tolerance defines simulation tolerance parameters. // Tolerance defines simulation tolerance parameters.

View File

@ -6,8 +6,8 @@ import (
"sync" "sync"
"time" "time"
"numenor-labs.us/dsfx/dsfx/internal/lib/disk" "git.numenor-labs.us/dsfx/internal/lib/disk"
"numenor-labs.us/dsfx/dsfx/internal/lib/system" "git.numenor-labs.us/dsfx/internal/lib/system"
) )
// SimSystem is a simulated implementation of system.System. // SimSystem is a simulated implementation of system.System.

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity" "git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
) )
func main() { func main() {